]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix contact refleak on stateful responses. 77/1177/1
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Sep 2015 22:26:14 +0000 (17:26 -0500)
committerMark Michelson <mmichelson@digium.com>
Wed, 2 Sep 2015 22:26:14 +0000 (17:26 -0500)
commitad9cb6c2ce6dbe9c985c6891daf53cc4160e3a13
tree5394961f7fb6f167ee27756eb34f8ad52d0a6c40
parentd58c8d73afae1a2d7f3cb4dcc3abb799b567a7c6
res_pjsip: Fix contact refleak on stateful responses.

When sending a stateful response, creation of the transaction can fail,
most commonly because we are trying to create a transaction from a
retransmitted request. When creation of the transaction fails, we end up
leaking a reference to a contact that was bumped when the response was
created.

This patch adds the missing deref and fixes the reference leak.

Change-Id: I2f97ad512aeb1b17e87ca29ae0abacb4d6395f07
res/res_pjsip.c