ae.c: solved a memory leak with no practical effects (since the event

loop is never destroyed in Redis). Thanks to @anydot for noticing it.
This commit is contained in:
antirez 2011-12-16 09:55:01 +01:00
parent e074416be4
commit 18d0ef4bf0

View File

@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) {
void aeDeleteEventLoop(aeEventLoop *eventLoop) {
aeApiFree(eventLoop);
zfree(eventLoop->events);
zfree(eventLoop->fired);
zfree(eventLoop);
}