From f963c408bd501aa7d72ed098fc8af1ed2611cedc Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 10 Sep 2025 13:35:51 +0200 Subject: [PATCH] unix-socket: fix memory leak on client disconnect If a client loses the connection during a reload it initiated there is a small memory leak. Bug: #7891. --- src/unix-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix-manager.c b/src/unix-manager.c index 067a89fb94..f10d569309 100644 --- a/src/unix-manager.c +++ b/src/unix-manager.c @@ -519,7 +519,7 @@ static int UnixCommandExecute(UnixCommand * this, char *command, UnixClient *cli } if (UnixCommandSendJSONToClient(client, server_msg) != 0) { - goto error; + goto error_cmd; } json_decref(jsoncmd); -- 2.47.3