aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-23 00:33:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-23 00:33:20 +0000
commita9fc5e06ba07627fd05d467b4e6dfe20a60e3686 (patch)
tree61cf4bcc1a9592bba8ed92ddf98a26aee4a9f522 /cdr
parent68e0ea991922e6006985c6f1a17d01d3883d5eab (diff)
Merged revisions 45928 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r45928 | file | 2006-10-22 20:27:39 -0400 (Sun, 22 Oct 2006) | 10 lines Merged revisions 45927 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r45927 | file | 2006-10-22 20:25:28 -0400 (Sun, 22 Oct 2006) | 2 lines Don't leak memory mmmk? ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45929 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_odbc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c
index f916a8d85..79ea1453a 100644
--- a/cdr/cdr_odbc.c
+++ b/cdr/cdr_odbc.c
@@ -346,7 +346,6 @@ static int odbc_load_module(void)
goto out;
}
- ast_config_destroy(cfg);
if (option_verbose > 2) {
ast_verbose( VERBOSE_PREFIX_3 "cdr_odbc: dsn is %s\n",dsn);
if (username)
@@ -371,6 +370,8 @@ static int odbc_load_module(void)
ast_log(LOG_ERROR, "cdr_odbc: Unable to register ODBC CDR handling\n");
}
out:
+ if (cfg)
+ ast_config_destroy(cfg);
ast_mutex_unlock(&odbc_lock);
return res;
}