From 9e0c2f34dcdefef980d8873fb2681018ef14ab85 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Thu, 10 Sep 2020 19:46:39 +0200 Subject: [PATCH] CLEANUP: Free old_argv on deinit This allocation technically is always reachable and cannot leak, however other global variables such as `oldpids` are already being freed. This is in an attempt to get HAProxy to a state where there are zero live allocations after a clean exit. --- src/haproxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/haproxy.c b/src/haproxy.c index 5ae21824a..663922e72 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2680,6 +2680,7 @@ void deinit(void) free(global.node); global.node = NULL; free(global.desc); global.desc = NULL; free(oldpids); oldpids = NULL; + free(old_argv); old_argv = NULL; free(localpeer); localpeer = NULL; task_destroy(idle_conn_task); idle_conn_task = NULL;