From 99fd69830ee95f81e4c3634e6c546934c25a0b37 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. (cherry picked from commit f963c408bd501aa7d72ed098fc8af1ed2611cedc) --- 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 df53f3c2f2..cc214cc4c5 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);