[Asterisk-cvs] asterisk/cdr cdr_pgsql.c,1.9,1.10
markster at lists.digium.com
markster at lists.digium.com
Wed Jul 28 14:56:32 CDT 2004
Update of /usr/cvsroot/asterisk/cdr
In directory localhost.localdomain:/tmp/cvs-serv19587/cdr
Modified Files:
cdr_pgsql.c
Log Message:
Only Call PQfinish if conn isn't NULL (bug #2162)
Index: cdr_pgsql.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_pgsql.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cdr_pgsql.c 14 Jul 2004 13:57:15 -0000 1.9
+++ cdr_pgsql.c 28 Jul 2004 18:42:35 -0000 1.10
@@ -142,7 +142,9 @@
static int my_unload_module(void)
{
- PQfinish(conn);
+ if (conn)
+ PQfinish(conn);
+ conn = NULL;
connected = 0;
if (pghostname && hostname_alloc) {
free(pghostname);
More information about the svn-commits
mailing list