summaryrefslogtreecommitdiff
path: root/src/ae.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-12-16 09:55:01 +0100
committerantirez <antirez@gmail.com>2011-12-16 09:55:06 +0100
commit18d0ef4bf010282832e9f4c697a86218fc70f393 (patch)
tree5e261559d242e26dcd9348e30c08bb8cd02f9d75 /src/ae.c
parente074416be49947c7bab5e237fab7210441bd99e5 (diff)
downloadredis-18d0ef4bf010282832e9f4c697a86218fc70f393.tar.gz
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.
Diffstat (limited to 'src/ae.c')
-rw-r--r--src/ae.c2
1 files changed, 2 insertions, 0 deletions
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);
}