From 4cc1b0d4ef283b5ace5249483ec7eb3b1fc5d193 Mon Sep 17 00:00:00 2001 From: Godbach Date: Wed, 26 Jun 2013 16:49:51 +0800 Subject: [PATCH] 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 --- src/haproxy.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3