Skip to content
Snippets Groups Projects
Commit 08bc4220 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "res_pjsip_endpoint_identifier_ip: Fix memory leak of hosts when resolving."

parents 10631bb2 7fa3de7a
No related branches found
No related tags found
No related merge requests found
......@@ -323,9 +323,14 @@ static int ip_identify_apply(const struct ast_sorcery *sorcery, void *obj)
} else if (results == -1) {
ast_log(LOG_ERROR, "An error occurred when adding resolution results of '%s' on '%s'\n",
current_string, ast_sorcery_object_get_id(obj));
ao2_ref(current_string, -1);
ao2_iterator_destroy(&i);
return -1;
}
ao2_ref(current_string, -1);
}
ao2_iterator_destroy(&i);
ao2_ref(identify->hosts, -1);
identify->hosts = NULL;
......
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