diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-05-01 04:00:29 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-05-01 04:00:29 +0200 |
commit | 8e391e8bfb0cd37181de8d1a921855ec798eaaad (patch) | |
tree | e6b9beb6c1ec8b94a36d29de72047062c38ef3c3 | |
parent | cce67665f702fe10df64c1bad6a1bf6cf19c06ab (diff) |
Don't free null strings.
When running in client-only mode, this string will never be allocated,
but the code tried to free it ...
-rw-r--r-- | src/benchmark/taler-exchange-benchmark.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index 59fcc6599..feaa203a9 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -816,8 +816,8 @@ int main (int argc, char *const *argv) { - char *exchange_url; - char *auditor_url; + char *exchange_url = NULL; + char *auditor_url = NULL; struct GNUNET_CONFIGURATION_Handle *cfg; struct GNUNET_GETOPT_CommandLineOption options[] = { GNUNET_GETOPT_option_mandatory @@ -1031,8 +1031,8 @@ main (int argc, NULL, cfg_filename, exchange_url); - GNUNET_free (exchange_url); - GNUNET_free (auditor_url); + GNUNET_free_non_null (exchange_url); + GNUNET_free_non_null (auditor_url); duration = GNUNET_TIME_absolute_get_duration (start_time); if (GNUNET_OK == result) { |