]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mworker/cli: remove useless variable
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 8 Dec 2025 17:06:24 +0000 (18:06 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 9 Dec 2025 15:09:10 +0000 (16:09 +0100)
The msg variable is declared and free but never used, this patch removes it.

src/mworker.c

index 1e975b81d3031694420fe8577789bd0501fa4bba..86d959e8fea33c903157103e797fe50809b603fc 100644 (file)
@@ -864,8 +864,6 @@ static int cli_io_handler_show_proc(struct appctx *appctx)
        /* displays old processes */
 
        if (old) {
-               char *msg = NULL;
-
                chunk_appendf(&trash, "# old workers\n");
                list_for_each_entry(child, &proc_list, list) {
                        up = date.tv_sec - child->timestamp;
@@ -884,7 +882,6 @@ static int cli_io_handler_show_proc(struct appctx *appctx)
                                ha_free(&uptime);
                        }
                }
-               free(msg);
        }
 
        if (applet_putchk(appctx, &trash) == -1)