aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-21 02:01:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-21 02:01:46 +0000
commit6cc534ca3e09b35ac4e7873a102840fd2b5f2d0b (patch)
treeb0a8e329115c34eecf6647b7cbf41f1b9229f963
parente89e69617fa078292edf8ec7ea190ec8e1fce9a8 (diff)
Backport a fix for a memory leak that was fixed in trunk in reivision 76221
by rizzo. The memory used for the localaddr list was not freed during a configuration reload. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@76226 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 46aec9763..228734e10 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12758,6 +12758,7 @@ static int reload_config(void)
/* Reset IP addresses */
memset(&bindaddr, 0, sizeof(bindaddr));
+ ast_free_ha(localaddr);
memset(&localaddr, 0, sizeof(localaddr));
memset(&externip, 0, sizeof(externip));
memset(&prefs, 0 , sizeof(prefs));