summaryrefslogtreecommitdiff
path: root/apps/app_directory.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-12-17 21:17:20 +0000
committerMark Michelson <mmichelson@digium.com>2008-12-17 21:17:20 +0000
commita7829044ecd75baa70b19d536f72ec4342f8485b (patch)
tree5aaffac48d2e674845307fb9d4471174aa5867a5 /apps/app_directory.c
parent834782960ba5f5c74e27158e144c0b40f2b566db (diff)
Merged revisions 165255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines Fix some memory leaks found while looking at how realtime configs are handled. Also cleaned up some coding guidelines violations in app_realtime.c, mostly related to spacing ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r--apps/app_directory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 2b0b6776c..fe8139de5 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -437,6 +437,9 @@ static struct ast_config *realtime_directory(char *context)
if (!(cat = ast_category_new(context, "", 99999))) {
ast_log(LOG_WARNING, "Out of memory\n");
ast_config_destroy(cfg);
+ if (rtdata) {
+ ast_config_destroy(rtdata);
+ }
return NULL;
}
ast_category_append(cfg, cat);