Commit 465d9185 authored by Simon Morlat's avatar Simon Morlat

fix memory leak when processing delayed CANCELs

parent 807139a4
......@@ -9200,8 +9200,10 @@ int outgoing_recv(nta_outgoing_t *_orq,
if (status < 200) {
outgoing_send(cancel, 0);
if (outgoing_complete(orq))
if (outgoing_complete(orq)){
msg_destroy(msg);
return 0;
}
}
else {
outgoing_reply(cancel, SIP_481_NO_TRANSACTION, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment