diff options
author | antirez <antirez@gmail.com> | 2012-08-24 15:40:22 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-08-24 15:41:49 +0200 |
commit | 06bd3b9acd86091c91e7bf3bd01c7772aa1616bc (patch) | |
tree | edd45248f1599028c43d68dc70d5c6122cd9633c /src | |
parent | 5de75120ba637d6193e02d99faea3f8071ac914b (diff) | |
download | redis-06bd3b9acd86091c91e7bf3bd01c7772aa1616bc.tar.gz |
Fix a forget zmalloc_oom() -> zmalloc_oom_handler() replacement.
Diffstat (limited to 'src')
-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 afa9fda80..43d60a9c6 100644 --- a/src/zmalloc.c +++ b/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); |