summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hiredis.c b/hiredis.c
index b70ffe3..9eafefe 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -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);