From 18d0ef4bf010282832e9f4c697a86218fc70f393 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 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); } -- 2.49.0