mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
res_rtp_asterisk: fix memory leak
Add missing reference decrement in rtp_deallocate_transport() ASTERISK-29671 Change-Id: I8d22dbedb90e8dade0829b7a28372f404b07caa9
This commit is contained in:
committed by
Jean Aunis - Prescom
parent
29c44caecb
commit
0ab4e7491d
@@ -3994,6 +3994,11 @@ static void rtp_deallocate_transport(struct ast_rtp_instance *instance, struct a
|
||||
rtp->ice_active_remote_candidates = NULL;
|
||||
}
|
||||
|
||||
if (rtp->ice_proposed_remote_candidates) {
|
||||
ao2_ref(rtp->ice_proposed_remote_candidates, -1);
|
||||
rtp->ice_proposed_remote_candidates = NULL;
|
||||
}
|
||||
|
||||
if (rtp->ioqueue) {
|
||||
/*
|
||||
* We cannot hold the instance lock because we could wait
|
||||
|
Reference in New Issue
Block a user