libevent: call destroy from cleanup
also, indentation fix
This commit is contained in:
parent
1eb44cf0c4
commit
f0a7595056
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user