diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-21 15:16:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-21 15:16:58 +0100 |
commit | cb96bb0ba7ac4ff54beba5dc275fb2be3b1d12ff (patch) | |
tree | fdf5c5a5b0f9b0760692d491a02f147238b4336b | |
parent | 7b50c7c0122ec39c6dca64df5709f04210c3722a (diff) |
-fix warning
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 6cceeb444..ce67dce37 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -165,6 +165,11 @@ postgres_drop_tables (void *cls) if (NULL == conn) return GNUNET_SYSERR; GNUNET_PQ_disconnect (conn); + if (NULL != pg->conn) + { + GNUNET_PQ_disconnect (pg->conn); + pg->init = false; + } return GNUNET_OK; } @@ -6403,6 +6408,7 @@ free_link_data_list (void *cls, { struct TALER_EXCHANGEDB_LinkList *next; + (void) cls; while (NULL != ldl) { next = ldl->next; @@ -11901,7 +11907,10 @@ libtaler_plugin_exchangedb_postgres_done (void *cls) struct PostgresClosure *pg = plugin->cls; if (NULL != pg->conn) + { GNUNET_PQ_disconnect (pg->conn); + pg->conn = NULL; + } GNUNET_free (pg->exchange_url); GNUNET_free (pg->sql_dir); GNUNET_free (pg->currency); |