summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2006-01-12 13:54:18 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2006-01-12 13:54:18 +0000
commit99a669f0e670ea86cd7bf835cfb13ef1d445d92e (patch)
tree19813693844adf258a9df9251d412cb677e17943
parente919a3a8cebec9fc0ddffaf00de5083522686cbe (diff)
Fix memory leak in pgsql output, fix gcc-2.95 compilation (John Hohm)
-rw-r--r--ulogd/pgsql/ulogd_PGSQL.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ulogd/pgsql/ulogd_PGSQL.c b/ulogd/pgsql/ulogd_PGSQL.c
index 1c10c32..1cd680e 100644
--- a/ulogd/pgsql/ulogd_PGSQL.c
+++ b/ulogd/pgsql/ulogd_PGSQL.c
@@ -85,7 +85,7 @@ static config_entry_t schema_ce = {
.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 @@ static int pgsql_output(ulog_iret_t *result)
return 1;
}
+ PQclear(pgres);
+
return 0;
}