Skip to content
Snippets Groups Projects
Commit 5703374c authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "chan_sip: Fix reference leak in mwi_event_cb"

parents 2567e576 f73ddde7
No related branches found
No related tags found
No related merge requests found
......@@ -17229,10 +17229,8 @@ static void mwi_event_cb(void *userdata, struct stasis_subscription *sub, struct
struct sip_peer *peer = sip_find_peer(peer_name, NULL, TRUE, FINDALLDEVICES, FALSE, 0);
 
if (stasis_subscription_final_message(sub, msg)) {
if (peer) {
/* configuration reloaded */
return;
}
/* peer can be non-NULL during reload. */
ao2_cleanup(peer);
ast_free(peer_name);
return;
}
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