From 258263a5100a91bedaca67c45d3e87fa764b5284 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Jun 2019 21:13:55 +0200 Subject: [PATCH] fix use after free --- src/exchange-tools/taler-exchange-wire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exchange-tools/taler-exchange-wire.c b/src/exchange-tools/taler-exchange-wire.c index 9af4c4910..1ea3c5c06 100644 --- a/src/exchange-tools/taler-exchange-wire.c +++ b/src/exchange-tools/taler-exchange-wire.c @@ -189,16 +189,17 @@ run (void *cls, global_ret = 1; return; } - GNUNET_free (masters); if (0 != GNUNET_memcmp (&mpub, &mpub_cfg)) { fprintf (stderr, "Master public key `%s' in configuration does not match our master private key!\n", masters); + GNUNET_free (masters); global_ret = 1; return; } + GNUNET_free (masters); TALER_EXCHANGEDB_find_accounts (cfg, &sign_account_data, NULL);