]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Free old_argv on deinit
authorTim Duesterhus <tim@bastelstu.be>
Thu, 10 Sep 2020 17:46:39 +0000 (19:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Sep 2020 05:54:39 +0000 (07:54 +0200)
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

index 5ae21824a17b1e0f6acb5abfdeeff4523166387f..663922e72a01b69c7d3f88bda6c54a56c33c3f7d 100644 (file)
@@ -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;