#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

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2596/einsteininitialdata-twopunctures-allocated