[Asterisk-code-review] res_rtp_asterisk: fix memory leak (asterisk[17])
Jean Aunis - Prescom
asteriskteam at digium.com
Thu Sep 30 01:44:01 CDT 2021
Jean Aunis - Prescom has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16553 )
Change subject: res_rtp_asterisk: fix memory leak
......................................................................
res_rtp_asterisk: fix memory leak
Add missing reference decrement in rtp_deallocate_transport()
ASTERISK-29671
Change-Id: I8d22dbedb90e8dade0829b7a28372f404b07caa9
---
M res/res_rtp_asterisk.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/53/16553/1
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 5a41d9c..c5abd69 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3907,6 +3907,11 @@
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
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16553
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: I8d22dbedb90e8dade0829b7a28372f404b07caa9
Gerrit-Change-Number: 16553
Gerrit-PatchSet: 1
Gerrit-Owner: Jean Aunis - Prescom <jean.aunis at prescom.fr>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210930/4784d182/attachment-0001.html>
More information about the asterisk-code-review
mailing list