[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 01/02: avoid memory leak on DB connect err
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 01/02: avoid memory leak on DB connect error |
Date: |
Mon, 06 Mar 2017 13:26:25 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
commit 690b9c9e245a0c4a55e54f066348bd1200f5115d
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Mar 6 13:16:32 2017 +0100
avoid memory leak on DB connect error
---
src/backenddb/plugin_merchantdb_postgres.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 1229f10..ae2ead4 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1350,7 +1350,7 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
pg->conn = GNUNET_POSTGRES_connect (cfg, "merchantdb-postgres");
if (NULL == pg->conn)
{
- GNUNET_break (0);
+ GNUNET_free (pg);
return NULL;
}
plugin = GNUNET_new (struct TALER_MERCHANTDB_Plugin);
--
To stop receiving notification emails like this one, please contact
address@hidden