Commit a4f658b2 authored by Fuxin Hao's avatar Fuxin Hao
Browse files

Fix update_zmalloc_stat_alloc in zrealloc

parent ce17f76b
...@@ -165,7 +165,7 @@ void *zrealloc(void *ptr, size_t size) { ...@@ -165,7 +165,7 @@ void *zrealloc(void *ptr, size_t size) {
*((size_t*)newptr) = size; *((size_t*)newptr) = size;
update_zmalloc_stat_free(oldsize); update_zmalloc_stat_free(oldsize);
update_zmalloc_stat_alloc(size); update_zmalloc_stat_alloc(size+PREFIX_SIZE);
return (char*)newptr+PREFIX_SIZE; return (char*)newptr+PREFIX_SIZE;
#endif #endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment