Revert "Fix bug in prof_realloc"

This reverts commit 3b5eecf102.
This commit is contained in:
Yinan Zhang 2019-11-15 14:20:31 -08:00
parent 3b5eecf102
commit 73510dfd15

View File

@ -203,7 +203,7 @@ prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx,
* counters.
*/
if (unlikely(old_sampled)) {
prof_free_sampled_object(tsd, old_ptr, old_usize, old_tctx);
prof_free_sampled_object(tsd, ptr, old_usize, old_tctx);
}
}