summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adapters/libuv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/adapters/libuv.h b/adapters/libuv.h
index 268edab..ec67c15 100644
--- a/adapters/libuv.h
+++ b/adapters/libuv.h
@@ -159,6 +159,7 @@ static int redisLibuvAttach(redisAsyncContext* ac, uv_loop_t* loop) {
memset(p, 0, sizeof(*p));
if (uv_poll_init_socket(loop, &p->handle, c->fd) != 0) {
+ hi_free(p);
return REDIS_ERR;
}