From 85aa6d17c727a5899490aa82b0ece9ac95972c66 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Nov 2018 14:51:31 +0100 Subject: fix misc. memory leaks --- src/bank-lib/bank_api_parse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bank-lib/bank_api_parse.c') diff --git a/src/bank-lib/bank_api_parse.c b/src/bank-lib/bank_api_parse.c index 04cf7b85f..6de9e5e1c 100644 --- a/src/bank-lib/bank_api_parse.c +++ b/src/bank-lib/bank_api_parse.c @@ -66,6 +66,7 @@ TALER_BANK_auth_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, { case TALER_BANK_AUTH_NONE: auth->method = TALER_BANK_AUTH_NONE; + GNUNET_free (method); return GNUNET_OK; case TALER_BANK_AUTH_BASIC: if (GNUNET_OK != @@ -77,6 +78,7 @@ TALER_BANK_auth_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, section, "USERNAME"); + GNUNET_free (method); return GNUNET_SYSERR; } if (GNUNET_OK != @@ -90,13 +92,16 @@ TALER_BANK_auth_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, section, "USERNAME"); + GNUNET_free (method); return GNUNET_SYSERR; } auth->method = TALER_BANK_AUTH_BASIC; + GNUNET_free (method); return GNUNET_OK; } } } + GNUNET_free (method); return GNUNET_SYSERR; } -- cgit v1.2.3