]> git.saurik.com Git - redis.git/blobdiff - src/ae_kqueue.c
Lists AOF rewrite using variadic RPUSH (work in progress)
[redis.git] / src / ae_kqueue.c
index 04c3536ba7f80892ef00cfaa20d6a109776d0e15..6bf64f4ef868be13203ebfb2aefd70a6f9dfe9f1 100644 (file)
@@ -16,7 +16,10 @@ static int aeApiCreate(aeEventLoop *eventLoop) {
 
     if (!state) return -1;
     state->kqfd = kqueue();
-    if (state->kqfd == -1) return -1;
+    if (state->kqfd == -1) {
+        zfree(state);
+        return -1;
+    }
     eventLoop->apidata = state;
     
     return 0;