Commit ac3b79e0 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nta.c: fix leak in nta_msg_ackbye()

MeeGo Coverity issue CID #11774
parent d8d1ce4d
......@@ -3767,7 +3767,7 @@ int nta_msg_ackbye(nta_agent_t *agent, msg_t *msg)
TAG_END())))
goto err;
else
nta_outgoing_destroy(ack);
nta_outgoing_destroy(ack); /* Fire and forget */
home = msg_home(bmsg);
......@@ -3785,6 +3785,8 @@ int nta_msg_ackbye(nta_agent_t *agent, msg_t *msg)
NTATAG_STATELESS(1),
TAG_END())))
goto err;
else
nta_outgoing_destroy(bye); /* Fire and forget */
msg_destroy(msg);
return 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