From: Godbach Date: Wed, 26 Jun 2013 08:49:51 +0000 (+0800) Subject: BUG/MINOR: deinit: free fdinfo while doing cleanup X-Git-Tag: v1.5-dev20~339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cc1b0d4ef283b5ace5249483ec7eb3b1fc5d193;p=thirdparty%2Fhaproxy.git BUG/MINOR: deinit: free fdinfo while doing cleanup Both fdinfo and fdtab are allocated memory in init() while haproxy is starting, but only fdtab is freed in deinit(), fdinfo should also be freed. Signed-off-by: Godbach --- diff --git a/src/haproxy.c b/src/haproxy.c index ac9fba173d..ec9f513627 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1198,6 +1198,7 @@ void deinit(void) free(global.pidfile); global.pidfile = NULL; free(global.node); global.node = NULL; free(global.desc); global.desc = NULL; + free(fdinfo); fdinfo = NULL; free(fdtab); fdtab = NULL; free(oldpids); oldpids = NULL; free(global_listener_queue_task); global_listener_queue_task = NULL;