gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -fix leaks in test_crypto.c


From: gnunet
Subject: [taler-exchange] branch master updated: -fix leaks in test_crypto.c
Date: Mon, 28 Mar 2022 11:17:54 +0200

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 488d2173 -fix leaks in test_crypto.c
488d2173 is described below

commit 488d217381b392ede199d55708ed73417a7828ed
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Mon Mar 28 11:17:49 2022 +0200

    -fix leaks in test_crypto.c
---
 src/util/test_crypto.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
index 84c84009..c9f690b2 100644
--- a/src/util/test_crypto.c
+++ b/src/util/test_crypto.c
@@ -129,12 +129,11 @@ test_planchets_rsa (uint8_t age)
 
   if (0 < age)
   {
+    struct TALER_AgeCommitmentProof acp;
     struct TALER_AgeCommitmentHash ah = {0};
     uint64_t salt = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,
                                               UINT64_MAX);
 
-    struct TALER_AgeCommitmentProof acp;
-
     GNUNET_assert (GNUNET_OK ==
                    TALER_age_restriction_commit (&age_mask,
                                                  age,
@@ -143,6 +142,7 @@ test_planchets_rsa (uint8_t age)
     TALER_age_commitment_hash (&acp.commitment,
                                &ah);
     ach = &ah;
+    TALER_age_commitment_proof_free (&acp);
   }
 
   GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG,
@@ -271,6 +271,7 @@ test_planchets_cs (uint8_t age)
     TALER_age_commitment_hash (&acp.commitment,
                                &ah);
     ach = &ah;
+    TALER_age_commitment_proof_free (&acp);
   }
 
   GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]