Unverified Commit ab1d5fe1 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5160 from oranagra/fix_zmalloc_usable

fix recursion typo in zmalloc_usable
parents 9a375e54 780815dd
...@@ -183,7 +183,7 @@ size_t zmalloc_size(void *ptr) { ...@@ -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
......
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