Merge "chan_sip: Fix reference leak in mwi_event_cb"

changes/06/3206/1
Joshua Colp 9 years ago committed by Gerrit Code Review
commit 5703374cc5

@ -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;
}

Loading…
Cancel
Save