Commit f0a75950 authored by Mark Nunberg's avatar Mark Nunberg
Browse files

libevent: call destroy from cleanup

also, indentation fix
parent 1eb44cf0
...@@ -131,7 +131,7 @@ static void redisLibeventCleanup(void *privdata) { ...@@ -131,7 +131,7 @@ static void redisLibeventCleanup(void *privdata) {
if (e->state & REDIS_LIBEVENT_ENTERED) { if (e->state & REDIS_LIBEVENT_ENTERED) {
e->state |= REDIS_LIBEVENT_DELETED; e->state |= REDIS_LIBEVENT_DELETED;
} else { } else {
free(e); redisLibeventDestroy(e);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment