Skip to content

Commit

Permalink
janssonrpc-c: fix shared memory leak on notification requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Schmidbauer committed Nov 2, 2016
1 parent 745196c commit cf8d606
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/janssonrpc-c/janssonrpc_io.c
Expand Up @@ -534,6 +534,8 @@ void cmd_pipe_cb(int fd, short event, void *arg)
WARN("%s could not be sent to connection group: %.*s\n",
type, STR(req_cmd->conn));
fail_request(JRPC_ERR_SEND, req, "Failed to send request");
} else if (req_cmd->notify_only == true) { // free notification requests if they are sent
free_req_cmd(req_cmd);
}

end:
Expand Down

0 comments on commit cf8d606

Please sign in to comment.