[ET Trac] #2596: EinsteinInitialData/TwoPunctures: Allocated memory is not freed

Zach Etienne trac-noreply at einsteintoolkit.org
Thu Feb 17 09:20:10 CST 2022


#2596: EinsteinInitialData/TwoPunctures: Allocated memory is not freed

 Reporter: Zach Etienne
   Status: new
Milestone: 
  Version: development version
     Type: bug
 Priority: major
Component: 

Changes (by Zach Etienne):
In `Newton.c` , lines 375-376:

```
  if (*normres <= tol)
    return 0;
```

returns from the function after temporary memory for the `Newton()` function has been allocated, but does not free that memory. `valgrind` confirms this issue.

I attach an updated version of `Newton.c` that should fix the issue.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2596/einsteininitialdata-twopunctures-allocated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20220217/a21c5d24/attachment.html 


More information about the Trac mailing list