[asterisk-commits] file: branch 1.4 r45928 - in /branches/1.4: ./
cdr/cdr_odbc.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Oct 22 17:27:40 MST 2006
Author: file
Date: Sun Oct 22 19:27:39 2006
New Revision: 45928
URL: http://svn.digium.com/view/asterisk?rev=45928&view=rev
Log:
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?
........
Modified:
branches/1.4/ (props changed)
branches/1.4/cdr/cdr_odbc.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/cdr/cdr_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/cdr/cdr_odbc.c?rev=45928&r1=45927&r2=45928&view=diff
==============================================================================
--- branches/1.4/cdr/cdr_odbc.c (original)
+++ branches/1.4/cdr/cdr_odbc.c Sun Oct 22 19:27:39 2006
@@ -340,7 +340,6 @@
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 @@
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;
}
More information about the asterisk-commits
mailing list