From: Tim Duesterhus Date: Thu, 10 Sep 2020 17:46:39 +0000 (+0200) Subject: CLEANUP: Free old_argv on deinit X-Git-Tag: v2.3-dev4~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e0c2f34dcdefef980d8873fb2681018ef14ab85;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/haproxy.c b/src/haproxy.c index 5ae21824a1..663922e72a 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;