]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/location: Fix ref leak in contact_apply_handler 77/577/1
authorGeorge Joseph <george.joseph@fairview5.com>
Wed, 3 Jun 2015 18:17:58 +0000 (12:17 -0600)
committerGeorge Joseph <george.joseph@fairview5.com>
Wed, 3 Jun 2015 18:17:58 +0000 (12:17 -0600)
commit5dc9fb4198f2081f3996c89fb42aaffc0f326df8
treed19c7029bba935ca3606890c66f795c2f7a1f00d
parentbc70904c053ccc3c14d2b2f87ee81b5e8ffadbbb
res_pjsip/location: Fix ref leak in contact_apply_handler

contact_apply_handler calls ast_res_pjsip_find_or_create_contact_status
to force the creation of a contact_status object whenever a new
contact is added but it didn't unref the returned object.

Added an ao2_cleanup(status) to plug the leak.

ASTERISK-25141

Change-Id: Icc1401cae142855a1abc86ab5179dfb3ee861c40
Reported-by: Corey Farrell
res/res_pjsip/location.c