[Asterisk-code-review] res pjsip: Fix leak in pjsip options. (asterisk[16])
Corey Farrell
asteriskteam at digium.com
Wed Aug 15 11:13:43 CDT 2018
Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/9871
Change subject: res_pjsip: Fix leak in pjsip_options.
......................................................................
res_pjsip: Fix leak in pjsip_options.
sip_options_update_endpoint_state_compositor_aor leaked a reference to
the first available endpoint state compositor that was found.
Change-Id: Idb6be19f7219b6eed1dfb19c1e740dd40cb3fdc7
---
M res/res_pjsip/pjsip_options.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/71/9871/1
diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c
index 5eaf9e8..eb84c1b 100644
--- a/res/res_pjsip/pjsip_options.c
+++ b/res/res_pjsip/pjsip_options.c
@@ -565,6 +565,7 @@
for (; (aor_status = ao2_iterator_next(&it_aor_statuses)); ao2_ref(aor_status, -1)) {
if (aor_status->available) {
state = AST_ENDPOINT_ONLINE;
+ ao2_ref(aor_status, -1);
break;
}
}
--
To view, visit https://gerrit.asterisk.org/9871
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb6be19f7219b6eed1dfb19c1e740dd40cb3fdc7
Gerrit-Change-Number: 9871
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180815/676dad96/attachment.html>
More information about the asterisk-code-review
mailing list