<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Hi All,</div>
<div dir="ltr" > </div>
<div dir="ltr" >I could see a memory leak when running a simple loop that creates <code>NSMutableData</code> objects and appends to them with <code>swift-3.1-DEVELOPMENT-SNAPSHOT-2017-02-14-a-ubuntu16.10>I have not seen this leak with swift-3.0.2.</code></div>
<div dir="ltr" > </div>
<div dir="ltr" ><code>Following is the Leak Summary from Valgrind :</code></div>
<div dir="ltr" > </div>
<div dir="ltr" ><p>With Swift-3.0.2<br>==18606== LEAK SUMMARY:<br>==18606== <strong>definitely lost: 16 bytes in 1 blocks</strong><br>==18606== indirectly lost: 20 bytes in 1 blocks<br>==18606== possibly lost: 0 bytes in 0 blocks<br>==18606== still reachable: 74,893 bytes in 10 blocks<br>==18606== suppressed: 0 bytes in 0 blocks<br>==18606== Rerun with --leak-check=full to see details of leaked memory</p>
<p>Swift 3.1</p>
<p>18411== LEAK SUMMARY:<br>==18411== <strong>definitely lost: 247,463,936 bytes in 59 blocks</strong><br>==18411== indirectly lost: 0 bytes in 0 blocks<br>==18411== <strong>possibly lost: 171,966,640 bytes in 42 blocks</strong><br>==18411== still reachable: 74,885 bytes in 10 blocks<br>==18411== suppressed: 0 bytes in 0 blocks</p>
<div><a href="https://bugs.swift.org/browse/SR-3966" >https://bugs.swift.org/browse/SR-3966</a> is the corresponding bug report.</div>
<div> </div>
<div>Have anyone observed the same ? </div>
<div> </div>
<div>-SaiHema</div>
<div> </div>
<div> </div>
<div> </div></div></div><BR>