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

Merge "CHAOS: cleanup possible null vars on msg alloc failure"

parents 60aa871b 0a3f0e85
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,7 @@ static void msg_destructor(void *obj)
struct ast_msg *msg = obj;
ast_string_field_free_memory(msg);
ao2_ref(msg->vars, -1);
ao2_cleanup(msg->vars);
}
struct ast_msg *ast_msg_alloc(void)
......
......@@ -601,7 +601,7 @@ static int sip_msg_send(const struct ast_msg *msg, const char *to, const char *f
if (!(mdata = msg_data_create(msg, to, from)) ||
ast_sip_push_task(message_serializer, msg_send, mdata)) {
ao2_ref(mdata, -1);
ao2_cleanup(mdata);
return -1;
}
return 0;
......
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