From dd3acf4f57e980c6f96aff03c203e89c5e9f30b2 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Sat, 21 Sep 2013 00:55:54 +0000 Subject: [PATCH] features_config: Fix config ref leak of parkinglots. This leak happend for just about every channel created. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399585 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/features_config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/features_config.c b/main/features_config.c index 91e7df338a..c762060d59 100644 --- a/main/features_config.c +++ b/main/features_config.c @@ -622,6 +622,7 @@ static void features_config_destructor(void *obj) ao2_cleanup(cfg->global); ao2_cleanup(cfg->featuremap); + ao2_cleanup(cfg->parkinglots); ao2_cleanup(cfg->applicationmap); ao2_cleanup(cfg->featuregroups); } @@ -720,7 +721,7 @@ static struct features_config *__features_config_alloc(int allocate_applicationm return NULL; } - cfg->global = global_config_alloc();; + cfg->global = global_config_alloc(); if (!cfg->global) { return NULL; }