Hi Willy, The pointer fdinfo is allocated memory when haproxy is starting, but is not freed when haproxy exits. It should be a minor bug and there is a patch in attatchment for your information.
The commit log is as follows: Both fdinfo and fdtab are allocated memory in init() while haproxy is starting, but only fdtab was freed in deinit(), fdinfo should also be freed. Best Regards, Godbach
From b0c51207cb74ec01b3cdb0f79b3b60f359912a4a Mon Sep 17 00:00:00 2001 From: Godbach <[email protected]> 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 <[email protected]> --- src/haproxy.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index ac9fba1..ec9f513 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; -- 1.7.7

