[Asterisk-code-review] res_rtp_asterisk.c: Fixed memory leak (asterisk[master])

sungtae kim asteriskteam at digium.com
Mon May 18 11:33:07 CDT 2020


sungtae kim has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14416 )


Change subject: res_rtp_asterisk.c: Fixed memory leak
......................................................................

res_rtp_asterisk.c: Fixed memory leak

Added freeifaddrs() for memory releasing.

ASTERISK-28904

Change-Id: I109403866e85a30659351946903a679de9727a8f
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/16/14416/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 3bcfada..28fa12a 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3578,6 +3578,7 @@
 					pj_sockaddr_get_len(&pjtmp));
 			++count;
 		}
+		freeifaddrs(ifa);
 	}
 
 	/* If configured to use a STUN server to get our external mapped address do so */

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14416
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I109403866e85a30659351946903a679de9727a8f
Gerrit-Change-Number: 14416
Gerrit-PatchSet: 1
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200518/f3eea87c/attachment-0001.html>


More information about the asterisk-code-review mailing list