diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 20:51:38 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 20:51:38 +0000 |
commit | f3428dead2d1fd1b9cd475c3f10d97e5015c87dc (patch) | |
tree | b30293e93473d2e15972bbcdc8a76f23ac82d45e /apps/app_directory.c | |
parent | f23ceae472166f900873b9033b9dae684cba25c4 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@165255 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r-- | apps/app_directory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index f0236d1f0..23d2b4d62 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -389,6 +389,9 @@ static struct ast_config *realtime_directory(char *context) if (!cat) { 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); |