[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix leak, uninitialized ps
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix leak, uninitialized ps |
Date: |
Sun, 27 Mar 2022 16:11:43 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new d61a19c2 -fix leak, uninitialized ps
d61a19c2 is described below
commit d61a19c275cc727e29fb15afee78b6b0ce19c8ee
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sun Mar 27 16:11:35 2022 +0200
-fix leak, uninitialized ps
---
src/exchangedb/test_exchangedb.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 9369bacb..6f941b9d 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 (
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix leak, uninitialized ps,
gnunet <=