libevent: call destroy from cleanup

also, indentation fix
This commit is contained in:
Mark Nunberg 2019-02-11 14:56:56 -05:00
parent 1eb44cf0c4
commit f0a7595056

View File

@ -131,7 +131,7 @@ static void redisLibeventCleanup(void *privdata) {
if (e->state & REDIS_LIBEVENT_ENTERED) {
e->state |= REDIS_LIBEVENT_DELETED;
} else {
free(e);
redisLibeventDestroy(e);
}
}