Commit 3dfa9111 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix memory leak in sofia when a message cannot be sent

parent 0987c2ac
......@@ -7974,8 +7974,12 @@ nta_outgoing_t *outgoing_create(nta_agent_t *agent,
if (orq->orq_status < 300)
retval = (void *)-1; /* NONE */
else
else{
if( orq->orq_request)
msg_unref(orq->orq_request);
retval = NULL, orq->orq_request = NULL;
}
outgoing_free(orq);
......
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