From 31e9efe54cb349b93fa56445eec2d398320b5e92 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 15 Dec 2007 23:14:38 +0000 Subject: [PATCH] fix memleak --- ev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ev.c b/ev.c index 188970d..08d4c7a 100644 --- a/ev.c +++ b/ev.c @@ -1040,6 +1040,8 @@ loop_destroy (EV_P) #endif } + ev_free (anfds); anfdmax = 0; + /* have to use the microsoft-never-gets-it-right macro */ array_free (fdchange, EMPTY); array_free (timer, EMPTY); @@ -1048,6 +1050,7 @@ loop_destroy (EV_P) #endif array_free (prepare, EMPTY); array_free (check, EMPTY); + array_free (fork, EMPTY); backend = 0; } -- 2.43.0