From: Mark Michelson Date: Fri, 21 Dec 2007 20:30:05 +0000 (+0000) Subject: Fix a memory leak when reloading queue rules. X-Git-Tag: 1.6.0-beta1~3^2~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b9943818bae3461199e34c3a9589e092c3f1a0;p=thirdparty%2Fasterisk.git Fix a memory leak when reloading queue rules. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94547 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 0f2df8d16c..323ab4d8cc 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; }