res_rtp_asterisk.c: Fixed memory leak

Added freeifaddrs() for memory releasing.

ASTERISK-28904

Change-Id: I109403866e85a30659351946903a679de9727a8f
This commit is contained in:
sungtae kim 2020-05-18 16:31:58 +00:00 committed by sungtae kim
parent ed75fd14a3
commit 862b9fcce8
1 changed files with 1 additions and 0 deletions

View File

@ -3578,6 +3578,7 @@ static void rtp_add_candidates_to_ice(struct ast_rtp_instance *instance, struct
pj_sockaddr_get_len(&pjtmp));
++count;
}
freeifaddrs(ifa);
}
/* If configured to use a STUN server to get our external mapped address do so */