mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Fix a forget zmalloc_oom() -> zmalloc_oom_handler() replacement.
This commit is contained in:
parent
6fdc635447
commit
1caa627e4e
@ -166,7 +166,7 @@ void *zrealloc(void *ptr, size_t size) {
|
||||
realptr = (char*)ptr-PREFIX_SIZE;
|
||||
oldsize = *((size_t*)realptr);
|
||||
newptr = realloc(realptr,size+PREFIX_SIZE);
|
||||
if (!newptr) zmalloc_oom(size);
|
||||
if (!newptr) zmalloc_oom_handler(size);
|
||||
|
||||
*((size_t*)newptr) = size;
|
||||
update_zmalloc_stat_free(oldsize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user