[asterisk-commits] func pjsip aor: Fix leaked contact from iterator. (asterisk[13])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 15 17:27:28 CDT 2015
Joshua Colp has submitted this change and it was merged.
Change subject: func_pjsip_aor: Fix leaked contact from iterator.
......................................................................
func_pjsip_aor: Fix leaked contact from iterator.
ASTERISK-25162 #close
Change-Id: Id79aa3c6fe490016ee98efc97ac4c1d3f461f97e
---
M funcs/func_pjsip_aor.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
diff --git a/funcs/func_pjsip_aor.c b/funcs/func_pjsip_aor.c
index e44ee94..47b9ad6 100644
--- a/funcs/func_pjsip_aor.c
+++ b/funcs/func_pjsip_aor.c
@@ -135,6 +135,8 @@
ast_str_append(buf, len, "%s", ast_sorcery_object_get_id(contact));
first = 0;
+
+ ao2_ref(contact, -1);
}
ao2_iterator_destroy(&i);
} else {
--
To view, visit https://gerrit.asterisk.org/661
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id79aa3c6fe490016ee98efc97ac4c1d3f461f97e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-commits
mailing list