diff options
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r-- | src/mintdb/plugin_mintdb_postgres.c | 4 |
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); } |