diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-23 00:27:39 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-23 00:27:39 +0000 |
commit | e0e739a21879d88f961635100ef77410f8b93ad1 (patch) | |
tree | 68c599b7cd216930a124c8abf54f41787b533a14 | |
parent | b480598e6f53ce67ce913ef8156cd4dbd3b26d4f (diff) |
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/branches/1.4@45928 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | cdr/cdr_odbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 6ff12120c..3424dd39c 100644 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -340,7 +340,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) @@ -365,6 +364,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; } |