Merge pull request #5160 from oranagra/fix_zmalloc_usable

fix recursion typo in zmalloc_usable
This commit is contained in:
Salvatore Sanfilippo 2018-07-24 00:07:59 +02:00 committed by GitHub
commit ab1d5fe11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ size_t zmalloc_size(void *ptr) {
return size+PREFIX_SIZE; return size+PREFIX_SIZE;
} }
size_t zmalloc_usable(void *ptr) { size_t zmalloc_usable(void *ptr) {
return zmalloc_usable(ptr)-PREFIX_SIZE; return zmalloc_size(ptr)-PREFIX_SIZE;
} }
#endif #endif