From 831ebbebb74ad499dba02cca25fdb2475e173036 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 21 Jul 2007 02:01:46 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@76226 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 46aec97633..228734e108 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));