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:14:56 -0500
commitea9d5f155ed675854637f4935f073439948c4939 (patch)
treed797574171cfcda3ee926802fe10021814aaf480 /funcs
parent15c220870148fd71cbeb72585cafd33569871ecd (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 41c15ffa1..835955e1b 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 {