Add missing prof_malloc() call in allocm().
Add a missing prof_malloc() call in allocm(). Before this fix, negative
object/byte counts could be observed in heap profiles for applications
that use allocm().
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 14a0c7c..b13b1bf 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1587,8 +1587,7 @@
if (malloc_init())
goto OOM;
- usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment,
- NULL);
+ usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment, NULL);
if (usize == 0)
goto OOM;
@@ -1612,7 +1611,7 @@
if (p == NULL)
goto OOM;
}
-
+ prof_malloc(p, usize, cnt);
if (rsize != NULL)
*rsize = usize;
} else