Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1caa627e4e53c479f1ee1f1f80b1b980d55eef7f 1 parent 6fdc635
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/zmalloc.c
View
2  src/zmalloc.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.