-fix leak, uninitialized ps
This commit is contained in:
parent
1f1d675f3d
commit
d61a19c275
@ -125,13 +125,13 @@ test_extension_config (void)
|
|||||||
plugin->set_extension_config (plugin->cls,
|
plugin->set_extension_config (plugin->cls,
|
||||||
"fnord",
|
"fnord",
|
||||||
"bar"));
|
"bar"));
|
||||||
|
|
||||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||||
plugin->get_extension_config (plugin->cls,
|
plugin->get_extension_config (plugin->cls,
|
||||||
"fnord",
|
"fnord",
|
||||||
&config));
|
&config));
|
||||||
|
|
||||||
FAILIF (0 != strcmp ("bar", config));
|
FAILIF (0 != strcmp ("bar", config));
|
||||||
|
GNUNET_free (config);
|
||||||
|
|
||||||
/* let's do this again! */
|
/* let's do this again! */
|
||||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||||
@ -145,6 +145,7 @@ test_extension_config (void)
|
|||||||
&config));
|
&config));
|
||||||
|
|
||||||
FAILIF (0 != strcmp ("buzz", config));
|
FAILIF (0 != strcmp ("buzz", config));
|
||||||
|
GNUNET_free (config);
|
||||||
|
|
||||||
/* let's do this again, with NULL */
|
/* let's do this again, with NULL */
|
||||||
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
|
||||||
@ -1351,6 +1352,7 @@ run (void *cls)
|
|||||||
TALER_denom_pub_hash (&dkp->pub,
|
TALER_denom_pub_hash (&dkp->pub,
|
||||||
&cbc.denom_pub_hash);
|
&cbc.denom_pub_hash);
|
||||||
RND_BLK (&cbc.reserve_sig);
|
RND_BLK (&cbc.reserve_sig);
|
||||||
|
RND_BLK (&ps);
|
||||||
TALER_planchet_blinding_secret_create (&ps,
|
TALER_planchet_blinding_secret_create (&ps,
|
||||||
&alg_values,
|
&alg_values,
|
||||||
&bks);
|
&bks);
|
||||||
@ -1381,6 +1383,8 @@ run (void *cls)
|
|||||||
TALER_coin_ev_hash (&pd.blinded_planchet,
|
TALER_coin_ev_hash (&pd.blinded_planchet,
|
||||||
&cbc.denom_pub_hash,
|
&cbc.denom_pub_hash,
|
||||||
&cbc.h_coin_envelope));
|
&cbc.h_coin_envelope));
|
||||||
|
if (i != 0)
|
||||||
|
TALER_blinded_denom_sig_free (&cbc.sig);
|
||||||
GNUNET_assert (
|
GNUNET_assert (
|
||||||
GNUNET_OK ==
|
GNUNET_OK ==
|
||||||
TALER_denom_sign_blinded (
|
TALER_denom_sign_blinded (
|
||||||
|
Loading…
Reference in New Issue
Block a user