summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-06-15 17:40:54 -0400
committerCorey Farrell <git@cfware.com>2015-06-15 17:40:54 -0400
commit79bf56c78ae1715a6e8948eedd87cd1e2665c4a8 (patch)
tree6a4c5998733fea871c8de04931018ad0d415d7a9 /funcs
parentde8c7f46ed0c1212054b6b6cfd33663549ebd94c (diff)
func_pjsip_aor: Fix leaked contact from iterator.
ASTERISK-25162 #close Change-Id: Id79aa3c6fe490016ee98efc97ac4c1d3f461f97e
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_pjsip_aor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_pjsip_aor.c b/funcs/func_pjsip_aor.c
index e44ee946b..47b9ad62e 100644
--- a/funcs/func_pjsip_aor.c
+++ b/funcs/func_pjsip_aor.c
@@ -135,6 +135,8 @@ static int pjsip_aor_function_read(struct ast_channel *chan,
ast_str_append(buf, len, "%s", ast_sorcery_object_get_id(contact));
first = 0;
+
+ ao2_ref(contact, -1);
}
ao2_iterator_destroy(&i);
} else {