diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-09-21 00:56:52 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-09-21 00:56:52 +0000 |
commit | dbec6e92d1a19e8537ab5bf7545e287ca5339df1 (patch) | |
tree | dbbd817298f3532fe80f5079faf1bd6f9461124a /main/features_config.c | |
parent | 5afbc01d5d5f93143079417dce2767aab7799460 (diff) |
features_config: Fix config ref leak of parkinglots.
This leak happend for just about every channel created.
........
Merged revisions 399585 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features_config.c')
-rw-r--r-- | main/features_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/features_config.c b/main/features_config.c index 91e7df338..c762060d5 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; } |