summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinan Zhang <zyn8950@gmail.com>2019-11-15 14:20:31 -0800
committerGitHub <noreply@github.com>2019-11-15 14:20:31 -0800
commit0f99731fbbec5df6f7dca431f8731a28c3006a2b (patch)
tree396ba6b235ab113dda8b6bac65db6679c80ec6db
parent3b5eecf102dcc3eb9a4a50346cdfa96917683e0a (diff)
downloadjemalloc-revert-1683-fix-prof-realloc.tar.gz
Revert "Fix bug in prof_realloc"revert-1683-fix-prof-realloc
This reverts commit 3b5eecf102dcc3eb9a4a50346cdfa96917683e0a.
-rw-r--r--include/jemalloc/internal/prof_inlines_b.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/prof_inlines_b.h b/include/jemalloc/internal/prof_inlines_b.h
index 3465397b..388537e6 100644
--- a/include/jemalloc/internal/prof_inlines_b.h
+++ b/include/jemalloc/internal/prof_inlines_b.h
@@ -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);
}
}