diff options
author | Jason Evans <je@fb.com> | 2011-03-23 07:30:30 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2011-03-23 07:30:30 (GMT) |
commit | eacb896c014d822cf563490d1c1f1cdc3cda24a2 (patch) | |
tree | ebfd6206cde7d80bf6e5db6e6fd9e675c862f9db /jemalloc/src | |
parent | c957398b4f973158de323366dbd424b7bb812ddf (diff) | |
download | jemalloc-eacb896c014d822cf563490d1c1f1cdc3cda24a2.zip jemalloc-eacb896c014d822cf563490d1c1f1cdc3cda24a2.tar.gz jemalloc-eacb896c014d822cf563490d1c1f1cdc3cda24a2.tar.bz2 |
Fix rallocm() rsize bug.
Add code to set *rsize even when profiling is enabled.
Diffstat (limited to 'jemalloc/src')
-rw-r--r-- | jemalloc/src/jemalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jemalloc/src/jemalloc.c b/jemalloc/src/jemalloc.c index 4d24470..1b8a278 100644 --- a/jemalloc/src/jemalloc.c +++ b/jemalloc/src/jemalloc.c @@ -1677,6 +1677,8 @@ JEMALLOC_P(rallocm)(void **ptr, size_t *rsize, size_t size, size_t extra, usize = isalloc(q); } prof_realloc(q, usize, cnt, old_size, old_ctx); + if (rsize != NULL) + *rsize = usize; } else #endif { |