Fix a memory leak when reloading queue rules.
authorMark Michelson <mmichelson@digium.com>
Fri, 21 Dec 2007 20:30:05 +0000 (20:30 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 21 Dec 2007 20:30:05 +0000 (20:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 0f2df8d..323ab4d 100644 (file)
@@ -4762,6 +4762,8 @@ static int reload_queue_rules(int reload)
                AST_LIST_UNLOCK(&rule_lists);
        }
 
+       ast_config_destroy(cfg);
+
        return AST_MODULE_LOAD_SUCCESS;
 }