Skip to content

Commit f3f02b6

Browse files
committed
Let the async API segfault on OOM for now
1 parent c9dc93e commit f3f02b6

File tree

3 files changed

+0
-44
lines changed

3 files changed

+0
-44
lines changed

async.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "async.h"
3737
#include "dict.c"
3838
#include "sds.h"
39-
#include "util.h"
4039

4140
/* Forward declaration of function in hiredis.c */
4241
void __redisAppendCommand(redisContext *c, char *cmd, size_t len);
@@ -163,7 +162,6 @@ static int __redisPushCallback(redisCallbackList *list, redisCallback *source) {
163162

164163
/* Copy callback from stack to heap */
165164
cb = malloc(sizeof(*cb));
166-
if (!cb) redisOOM();
167165
if (source != NULL) {
168166
memcpy(cb,source,sizeof(*cb));
169167
cb->next = NULL;

hiredis.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include "hiredis.h"
4141
#include "net.h"
4242
#include "sds.h"
43-
#include "util.h"
4443

4544
static redisReply *createReplyObject(int type);
4645
static void *createStringObject(const redisReadTask *task, char *str, size_t len);

util.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)