summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-09 22:10:14 +0200
committerChristian Grothoff <christian@grothoff.org>2015-07-09 22:10:14 +0200
commitbe535b68e1c5911c9ec011a0d24714d0f4b42377 (patch)
treef3105779d95265b4ebdaa8aff735bad31cc22d71 /src/mintdb/plugin_mintdb_postgres.c
parentbe778784ea2ceaf609426041c5ac3a0241ea242e (diff)
downloadexchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.tar.gz
exchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.tar.bz2
exchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.zip
fix a few pointer passing issues, add remark about #3886
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index d6e136da0..f2bc83677 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -892,10 +892,12 @@ postgres_prepare (PGconn *db_conn)
static void
db_conn_destroy (void *cls)
{
- PGconn *db_conn = cls;
+ struct TALER_MINTDB_Session *session = cls;
+ PGconn *db_conn = session->conn;
if (NULL != db_conn)
PQfinish (db_conn);
+ GNUNET_free (session);
}