[Asterisk-code-review] res_rtp_asterisk: fix memory leak (asterisk[18])
Jean Aunis - Prescom
asteriskteam at digium.com
Thu Sep 30 01:42:36 CDT 2021
Jean Aunis - Prescom has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16551 )
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/51/16551/1
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 8ede400..7b236be 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3994,6 +3994,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/+/16551
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I8d22dbedb90e8dade0829b7a28372f404b07caa9
Gerrit-Change-Number: 16551
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/6a9d235c/attachment.html>
More information about the asterisk-code-review
mailing list