mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user