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 f963c408bd)
pull/13848/head
Victor Julien 7 months ago
parent 9d56e7c3a6
commit 99fd69830e

@ -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);

Loading…
Cancel
Save