Skip to content

Commit 99fd698

Browse files
committed
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: OISF#7891. (cherry picked from commit f963c40)
1 parent 9d56e7c commit 99fd698

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/unix-manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static int UnixCommandExecute(UnixCommand * this, char *command, UnixClient *cli
519519
}
520520

521521
if (UnixCommandSendJSONToClient(client, server_msg) != 0) {
522-
goto error;
522+
goto error_cmd;
523523
}
524524

525525
json_decref(jsoncmd);

0 commit comments

Comments
 (0)