[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix warning
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix warning |
Date: |
Sun, 21 Nov 2021 15:17:00 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new cb96bb0b -fix warning
cb96bb0b is described below
commit cb96bb0ba7ac4ff54beba5dc275fb2be3b1d12ff
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 21 15:16:58 2021 +0100
-fix warning
---
src/exchangedb/plugin_exchangedb_postgres.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c
b/src/exchangedb/plugin_exchangedb_postgres.c
index 6cceeb44..ce67dce3 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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix warning,
gnunet <=