Returning early from functions left new allocations undeleted.