libevent: call destroy from cleanup
also, indentation fix
@@ -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);
}
}
