Skip to content

Commit

Permalink
xmlrpc: clean allocated buffer for reply when no more memory for reas…
Browse files Browse the repository at this point in the history
…on value

(cherry picked from commit 36a4b16)
(cherry picked from commit aa875e2)
(cherry picked from commit 1ccb215)
  • Loading branch information
miconda committed Jan 28, 2020
1 parent c2fe998 commit 7c1d6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/xmlrpc/xmlrpc.c
Expand Up @@ -2489,7 +2489,7 @@ static int ki_xmlrpc_reply(sip_msg_t* msg, int rcode, str* reason)
reply.reason = as_asciiz(reason);
if (reply.reason == NULL) {
ERR("No memory left\n");
return -1;
goto error;
}

if (reply.code >= 300) {
Expand Down

0 comments on commit 7c1d6d3

Please sign in to comment.