diff --git a/funcs/func_pjsip_aor.c b/funcs/func_pjsip_aor.c index 41c15ffa16715c18454792d277d9b7e3b17b3aef..835955e1bc2d41215a1caa5bcc12e5fb47aeae5a 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 {