From: antirez Date: Fri, 16 Dec 2011 08:55:01 +0000 (+0100) Subject: ae.c: solved a memory leak with no practical effects (since the event X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/18d0ef4bf010282832e9f4c697a86218fc70f393 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. --- diff --git a/src/ae.c b/src/ae.c index 98ff7a8e..6ddccdf7 100644 --- a/src/ae.c +++ b/src/ae.c @@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) { void aeDeleteEventLoop(aeEventLoop *eventLoop) { aeApiFree(eventLoop); + zfree(eventLoop->events); + zfree(eventLoop->fired); zfree(eventLoop); }