]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix contact refleak on stateful responses. 78/1178/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:28:18 +0000 (17:28 -0500)
commitc15d8cc0ed110ace9e85cce0857524358139c075
treea639302dc63d9e444950b08a468da8ba782ef0b5
parentb51cf1e71225b8e368e062be4c94f97b4af70453
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