<html>#2596: EinsteinInitialData/TwoPunctures: Allocated memory is not freed
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Zach Etienne</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>In <code>Newton.c</code> , lines 375-376:</p>
<div class="codehilite"><pre><span></span><span>  if (*normres &lt;= tol)</span>
<span>    return 0;</span>
</pre></div>


<p>returns from the function after temporary for the <code>Newton()</code> function has been allocated, but does not free the memory. <code>valgrind</code> confirms this issue.</p>
<p>I attach an updated version of <code>Newton.c</code> that should fix the issue.</p>
<p><table><tr><td>attachment:</td><td><a href="https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2596/attachments/Newton.c">Newton.c</a></td></tr>
</table></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2596/einsteininitialdata-twopunctures-allocated'>https://bitbucket.org/einsteintoolkit/tickets/issues/2596/einsteininitialdata-twopunctures-allocated</a></p>
</html>