From be535b68e1c5911c9ec011a0d24714d0f4b42377 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Jul 2015 22:10:14 +0200 Subject: fix a few pointer passing issues, add remark about #3886 --- src/mintdb/plugin_mintdb_postgres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mintdb/plugin_mintdb_postgres.c') diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c index d6e136da..f2bc8367 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); } -- cgit v1.2.3