Commit c2ecdcde authored by Oran Agra's avatar Oran Agra Committed by antirez
Browse files

fix recursion typo in zmalloc_usable

parent 4f742bd6
......@@ -183,7 +183,7 @@ size_t zmalloc_size(void *ptr) {
return size+PREFIX_SIZE;
}
size_t zmalloc_usable(void *ptr) {
return zmalloc_usable(ptr)-PREFIX_SIZE;
return zmalloc_size(ptr)-PREFIX_SIZE;
}
#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