diff options
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -37,6 +37,7 @@ #include "hiredis.h" #include "anet.h" #include "sds.h" +#include "util.h" typedef struct redisReader { struct redisReplyObjectFunctions *fn; @@ -66,12 +67,6 @@ static redisReplyObjectFunctions defaultFunctions = { freeReplyObject }; -/* We simply abort on out of memory */ -static void redisOOM(void) { - fprintf(stderr,"Out of memory in hiredis.c"); - exit(1); -} - /* Create a reply object */ static redisReply *createReplyObject(int type) { redisReply *r = calloc(sizeof(*r),1); |