summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-25 14:51:31 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-25 14:51:31 +0100
commit85aa6d17c727a5899490aa82b0ece9ac95972c66 (patch)
tree166a80ac1f86a7732b8d502f2b9070b4d57e33f7 /src/bank-lib
parent5052698cbc6692c922e75081af12ad24bf8c3e69 (diff)
downloadexchange-85aa6d17c727a5899490aa82b0ece9ac95972c66.tar.gz
exchange-85aa6d17c727a5899490aa82b0ece9ac95972c66.tar.bz2
exchange-85aa6d17c727a5899490aa82b0ece9ac95972c66.zip
fix misc. memory leaks
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/bank_api_parse.c5
1 files changed, 5 insertions, 0 deletions
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;
}