summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index a36664fd..eaca4093 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -542,7 +542,7 @@ db_conn_destroy (void *cls)
db_conn = session->conn;
session->conn = NULL;
if (NULL != db_conn)
- GNUNET_PQ_disconnect (session->conn);
+ GNUNET_PQ_disconnect (db_conn);
GNUNET_free (session);
}