diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-27 16:11:35 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-27 16:11:35 +0200 |
commit | d61a19c275cc727e29fb15afee78b6b0ce19c8ee (patch) | |
tree | e7ecdcb3a231c295c9df5158394b975369a8e46d /src | |
parent | 1f1d675f3dff18f3779d4d01cdb2b69da9e2fd8b (diff) | |
download | exchange-d61a19c275cc727e29fb15afee78b6b0ce19c8ee.tar.xz |
-fix leak, uninitialized ps
Diffstat (limited to 'src')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 9369bacbe..6f941b9dc 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -125,13 +125,13 @@ test_extension_config (void) plugin->set_extension_config (plugin->cls, "fnord", "bar")); - FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->get_extension_config (plugin->cls, "fnord", &config)); FAILIF (0 != strcmp ("bar", config)); + GNUNET_free (config); /* let's do this again! */ FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -145,6 +145,7 @@ test_extension_config (void) &config)); FAILIF (0 != strcmp ("buzz", config)); + GNUNET_free (config); /* let's do this again, with NULL */ FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -1351,6 +1352,7 @@ run (void *cls) TALER_denom_pub_hash (&dkp->pub, &cbc.denom_pub_hash); RND_BLK (&cbc.reserve_sig); + RND_BLK (&ps); TALER_planchet_blinding_secret_create (&ps, &alg_values, &bks); @@ -1381,6 +1383,8 @@ run (void *cls) TALER_coin_ev_hash (&pd.blinded_planchet, &cbc.denom_pub_hash, &cbc.h_coin_envelope)); + if (i != 0) + TALER_blinded_denom_sig_free (&cbc.sig); GNUNET_assert ( GNUNET_OK == TALER_denom_sign_blinded ( |