diff options
author | Oran Agra <oran@redislabs.com> | 2018-07-22 10:17:35 +0300 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2018-07-22 10:17:35 +0300 |
commit | 780815dd6ed62a0744bdbea90c239c5dcf792e60 (patch) | |
tree | 91cce0db13b5509984424c0f55ac510c51a52c2b /src/zmalloc.c | |
parent | 1c95c075966407729648fe676883a75be638824c (diff) | |
download | redis-780815dd6ed62a0744bdbea90c239c5dcf792e60.tar.gz |
fix recursion typo in zmalloc_usable
Diffstat (limited to 'src/zmalloc.c')
-rw-r--r-- | src/zmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmalloc.c b/src/zmalloc.c index 0d9917510..308774d86 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -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 |