Skip to content
Snippets Groups Projects
Commit b2c49d6c authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "aoc: Fix memory management issues."

parents 7a735d45 a95f2994
Branches
Tags
No related merge requests found
...@@ -1860,7 +1860,10 @@ static void aoc_publish_blob(struct ast_channel *chan, struct stasis_message_typ ...@@ -1860,7 +1860,10 @@ static void aoc_publish_blob(struct ast_channel *chan, struct stasis_message_typ
msg = stasis_message_create(msg_type, aoc_event); msg = stasis_message_create(msg_type, aoc_event);
ao2_ref(aoc_event, -1); ao2_ref(aoc_event, -1);
stasis_publish(ast_manager_get_topic(), msg); if (msg) {
stasis_publish(ast_manager_get_topic(), msg);
ao2_ref(msg, -1);
}
} }
static struct ast_manager_event_blob *aoc_to_ami(struct stasis_message *message, static struct ast_manager_event_blob *aoc_to_ami(struct stasis_message *message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment