summaryrefslogtreecommitdiff
path: root/src/auditordb/plugin_auditordb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-15 11:25:35 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-15 11:25:35 +0200
commit13707999f1c3d9b4ca67da1e428993a37de23b52 (patch)
treed9784350dd051b8221c894e1d0481e391e2b2c12 /src/auditordb/plugin_auditordb_postgres.c
parent5503c78160d701b85cecfe20af670808becacd39 (diff)
downloadexchange-13707999f1c3d9b4ca67da1e428993a37de23b52.tar.gz
exchange-13707999f1c3d9b4ca67da1e428993a37de23b52.tar.bz2
exchange-13707999f1c3d9b4ca67da1e428993a37de23b52.zip
fix leaks in auditordb
Diffstat (limited to 'src/auditordb/plugin_auditordb_postgres.c')
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 863e20582..9450ae94f 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -143,6 +143,7 @@ connect_to_postgres (struct PostgresClosure *pc)
TALER_LOG_ERROR ("Database connection failed: %s\n",
PQerrorMessage (conn));
GNUNET_break (0);
+ PQfinish (conn);
return NULL;
}
PQsetNoticeReceiver (conn,