summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-12-21 20:30:05 +0000
committerMark Michelson <mmichelson@digium.com>2007-12-21 20:30:05 +0000
commite0b9943818bae3461199e34c3a9589e092c3f1a0 (patch)
tree5a7b69ae199634583f8a8d3bff7a82fa75436e2a
parentb6eab6d084906a2c37b75fb19764750ae425588e (diff)
Fix a memory leak when reloading queue rules.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 0f2df8d16..323ab4d8c 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -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;
}