Merge pull request #5023 from FX-HAO/unstable

Fix update_zmalloc_stat_alloc in zrealloc
This commit is contained in:
Salvatore Sanfilippo 2018-06-19 16:50:22 +02:00 committed by GitHub
commit 4da296307c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ void *zrealloc(void *ptr, size_t size) {
*((size_t*)newptr) = size;
update_zmalloc_stat_free(oldsize);
update_zmalloc_stat_alloc(size);
update_zmalloc_stat_alloc(size+PREFIX_SIZE);
return (char*)newptr+PREFIX_SIZE;
#endif
}