merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 690b9c9e245a0c4a55e54f066348bd1200f5115d
parent bbdd9871e004c99f6b825448ae2c20b77cf95a13
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  6 Mar 2017 13:16:32 +0100

avoid memory leak on DB connect error

Diffstat:
Msrc/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 @@ -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);