[Asterisk-code-review] func pjsip aor: Fix leaked contact from iterator. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Mon Jun 15 17:14:56 CDT 2015
Corey Farrell has uploaded a new change for review.
https://gerrit.asterisk.org/662
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(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/62/662/1
diff --git a/funcs/func_pjsip_aor.c b/funcs/func_pjsip_aor.c
index 41c15ff..835955e 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/662
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id79aa3c6fe490016ee98efc97ac4c1d3f461f97e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
More information about the asterisk-code-review
mailing list