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.
pull/13843/head
Victor Julien 1 year ago committed by Victor Julien
parent 266809a0f2
commit f963c408bd

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