diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-09 22:10:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-09 22:10:14 +0200 |
commit | be535b68e1c5911c9ec011a0d24714d0f4b42377 (patch) | |
tree | f3105779d95265b4ebdaa8aff735bad31cc22d71 /src/mintdb/plugin_mintdb_postgres.c | |
parent | be778784ea2ceaf609426041c5ac3a0241ea242e (diff) | |
download | exchange-be535b68e1c5911c9ec011a0d24714d0f4b42377.tar.xz |
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.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); } |