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

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


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

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

In `Newton.c` , lines 375-376:

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

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

I attach an updated version of `Newton.c` that should fix the issue.
attachment: Newton.c (https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2596/attachments/Newton.c)


--
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/bbcd80c2/attachment.html 


More information about the Trac mailing list