]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk.c: Fixed memory leak
authorsungtae kim <sungtae@messagebird.com>
Mon, 18 May 2020 16:31:58 +0000 (16:31 +0000)
committersungtae kim <pchero21@gmail.com>
Mon, 18 May 2020 16:42:18 +0000 (11:42 -0500)
Added freeifaddrs() for memory releasing.

ASTERISK-28904

Change-Id: I109403866e85a30659351946903a679de9727a8f

res/res_rtp_asterisk.c

index 3bcfadac480600cb3d1a4c5e1fdfebc58e434210..28fa12a19d9ff984e0709dfcaccce45f16bc3ba6 100644 (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 */