From c1174271770509d590497f2b01fb153a74b7cd6f Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 16 Dec 2011 09:55:01 +0100 Subject: [PATCH] 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. --- src/ae.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ae.c b/src/ae.c index 98ff7a8ee..6ddccdf7e 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); }