[netfilter-cvslog] r6404 - trunk/ulog/ulogd/pgsql

laforge at netfilter.org laforge at netfilter.org
Thu Jan 12 14:54:18 CET 2006


Author: laforge at netfilter.org
Date: 2006-01-12 14:54:18 +0100 (Thu, 12 Jan 2006)
New Revision: 6404

Modified:
   trunk/ulog/ulogd/pgsql/ulogd_PGSQL.c
Log:
Fix memory leak in pgsql output, fix gcc-2.95 compilation (John Hohm)


Modified: trunk/ulog/ulogd/pgsql/ulogd_PGSQL.c
===================================================================
--- trunk/ulog/ulogd/pgsql/ulogd_PGSQL.c	2006-01-12 12:23:52 UTC (rev 6403)
+++ trunk/ulog/ulogd/pgsql/ulogd_PGSQL.c	2006-01-12 13:54:18 UTC (rev 6404)
@@ -85,7 +85,7 @@
 	.key = "schema", 
 	.type = CONFIG_TYPE_STRING,
 	.options = CONFIG_OPT_NONE,
-	.u.string = "public",
+	.u = { .string = "public" },
 };
 
 static config_entry_t port_ce = {
@@ -197,6 +197,8 @@
 		return 1;
 	}
 
+	PQclear(pgres);
+
 	return 0;
 }
 




More information about the netfilter-cvslog mailing list