From 3022f3d96a4fc2542beae1166516b12e96e280f3 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 9 Jun 2009 17:25:20 +0000 Subject: [PATCH] fix memory leak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13726 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_utils.c b/src/switch_utils.c index 4b5c7d9b19..4d1532df1d 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -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; } }