summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}