diff options
author | antirez <antirez@gmail.com> | 2011-12-16 09:55:01 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-12-16 09:55:06 +0100 |
commit | 18d0ef4bf010282832e9f4c697a86218fc70f393 (patch) | |
tree | 5e261559d242e26dcd9348e30c08bb8cd02f9d75 /src/ae.c | |
parent | e074416be49947c7bab5e237fab7210441bd99e5 (diff) | |
download | redis-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -86,6 +86,8 @@ aeEventLoop *aeCreateEventLoop(int setsize) { void aeDeleteEventLoop(aeEventLoop *eventLoop) { aeApiFree(eventLoop); + zfree(eventLoop->events); + zfree(eventLoop->fired); zfree(eventLoop); } |