I have methods that use
AnObject *a = new AnObject(...);
After I shut down the program the memory is leak cos "a" is not deleted. Any help to get rid of it ? I'm modifying an existing code so cannot do big changes.