mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 13:28:34 +00:00
Merge "chan_sip: Fix reference leak in mwi_event_cb" into 13
This commit is contained in:
@@ -17186,10 +17186,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user