Fix a prof-related bug in realloc().

Fix realloc() such that it only records the object passed in as freed if
no OOM error occurs.
1 file changed