Fix rallocm() rsize bug.

Add code to set *rsize even when profiling is enabled.
This commit is contained in:
Jason Evans 2011-03-23 00:30:30 -07:00
parent c957398b4f
commit eacb896c01

View File

@ -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
{