Skip to content
Snippets Groups Projects
Commit ea9d5f15 authored by Corey Farrell's avatar Corey Farrell
Browse files

func_pjsip_aor: Fix leaked contact from iterator.

ASTERISK-25162 #close

Change-Id: Id79aa3c6fe490016ee98efc97ac4c1d3f461f97e
parent 15c22087
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment