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
  • Loading branch information
miconda committed Oct 4, 2019
1 parent f877069 commit 36a4b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/xmlrpc/xmlrpc.c
Expand Up @@ -2509,7 +2509,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 36a4b16

Please sign in to comment.