From d9e3d0cdfe83368000068959fc32befbd5be0c46 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 22 Mar 2024 14:16:58 +0100 Subject: fix error handling logic in merchant_api_get_config --- src/lib/merchant_api_get_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/merchant_api_get_config.c b/src/lib/merchant_api_get_config.c index 1aee6ed6..ddbc20a3 100644 --- a/src/lib/merchant_api_get_config.c +++ b/src/lib/merchant_api_get_config.c @@ -243,6 +243,8 @@ handle_config_finished (void *cls, cr.hr.http_status = 0; cr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; GNUNET_free (eci); + TALER_CONFIG_free_currencies (off - 1, + cspecs); break; } } @@ -263,10 +265,10 @@ handle_config_finished (void *cls, "Unexpected response code %u/%d\n", (unsigned int) response_code, (int) cr.hr.ec); - vgh->cb (vgh->cb_cls, - &cr); break; } + vgh->cb (vgh->cb_cls, + &cr); TALER_MERCHANT_config_get_cancel (vgh); } -- cgit v1.2.3