Skip to content

Commit

Permalink
Let the async API segfault on OOM for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Apr 21, 2011
1 parent c9dc93e commit f3f02b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions async.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "async.h"
#include "dict.c"
#include "sds.h"
#include "util.h"

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

/* Copy callback from stack to heap */
cb = malloc(sizeof(*cb));
if (!cb) redisOOM();
if (source != NULL) {
memcpy(cb,source,sizeof(*cb));
cb->next = NULL;
Expand Down
1 change: 0 additions & 1 deletion hiredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "hiredis.h"
#include "net.h"
#include "sds.h"
#include "util.h"

static redisReply *createReplyObject(int type);
static void *createStringObject(const redisReadTask *task, char *str, size_t len);
Expand Down
41 changes: 0 additions & 41 deletions util.h

This file was deleted.

0 comments on commit f3f02b6

Please sign in to comment.