mirror of https://mirror.osredm.com/root/redis.git
fix recursion typo in zmalloc_usable
This commit is contained in:
parent
1c95c07596
commit
780815dd6e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue