asterisk/cdr
Mark Michelson 625410df63 Merged revisions 77318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77318 | mmichelson | 2007-07-26 13:30:29 -0500 (Thu, 26 Jul 2007) | 8 lines

Two consecutive calls to PQfinish could occur, meaning free gets called on the same variable twice.
This patch sets the connection to NULL after calls to PQfinish so that the problem does not occur.
Also in this patch, prashant_jois informed me that it is safe to pass a null pointer to PQfinish, so
I have removed the check for conn's existence from my_unload_module.

(closes issue 10295, reported by junky, patched by me with input from prashant_jois)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-26 18:31:28 +00:00
..
cdr_adaptive_odbc.c Do a massive conversion for using the ast_verb() macro 2007-07-26 15:49:18 +00:00
cdr_csv.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
cdr_custom.c Merged revisions 70841 via svnmerge from 2007-06-21 20:28:04 +00:00
cdr_manager.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
cdr_odbc.c Do a massive conversion for using the ast_verb() macro 2007-07-26 15:49:18 +00:00
cdr_pgsql.c Merged revisions 77318 via svnmerge from 2007-07-26 18:31:28 +00:00
cdr_radius.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
cdr_sqlite.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
cdr_sqlite3_custom.c Merge changes from team/russell/sqlite: 2007-03-13 21:22:33 +00:00
cdr_tds.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
Makefile GNU make already knows how to quietly ignore non-existent files in 'include' directives 2006-08-26 23:58:47 +00:00