fix memory leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13726 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6970541683
commit
3022f3d96a
|
@ -756,6 +756,7 @@ static int get_netmask(struct sockaddr_in *me, int *mask)
|
|||
|
||||
if (s && m && s->sin_addr.s_addr == me->sin_addr.s_addr) {
|
||||
*mask = m->sin_addr.s_addr;
|
||||
freeifaddrs(ifaddrs);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue