]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix contact refleak on stateful responses. 79/1179/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:27 +0000 (17:28 -0500)
commita1e1d8e81535ec07ea76756637a0ad70cf3ef431
tree90108be75f519779706abfd62cd93c109447aaeb
parent9f5e1c0e560de48cffbf534bafc5b82958e9f850
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