Skip to content
Snippets Groups Projects
Commit dbec6e92 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

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
parent 5afbc01d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment