Commit 1caa627e authored by antirez's avatar antirez
Browse files

Fix a forget zmalloc_oom() -> zmalloc_oom_handler() replacement.

parent 6fdc6354
......@@ -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);
......
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