diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-21 02:01:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-21 02:01:46 +0000 |
commit | 6cc534ca3e09b35ac4e7873a102840fd2b5f2d0b (patch) | |
tree | b0a8e329115c34eecf6647b7cbf41f1b9229f963 | |
parent | e89e69617fa078292edf8ec7ea190ec8e1fce9a8 (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.c | 1 |
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)); |