gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 01/02: -fix leak in test_age_restriction.c


From: gnunet
Subject: [taler-exchange] 01/02: -fix leak in test_age_restriction.c
Date: Mon, 28 Mar 2022 12:34:18 +0200

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

oec pushed a commit to branch master
in repository exchange.

commit ccf2d69dfb3da4ef62dfb868252dc6fda46d2ae0
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Mon Mar 28 12:33:41 2022 +0200

    -fix leak in test_age_restriction.c
---
 src/util/test_age_restriction.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/util/test_age_restriction.c b/src/util/test_age_restriction.c
index 0b182bd4..bf64a705 100644
--- a/src/util/test_age_restriction.c
+++ b/src/util/test_age_restriction.c
@@ -195,11 +195,11 @@ test_attestation (void)
 
         if (min_group <= age_group &&
             GNUNET_OK != ret)
-          return GNUNET_SYSERR;
+          ret = GNUNET_SYSERR;
 
         if (min_group > age_group &&
             GNUNET_NO != ret)
-          return GNUNET_SYSERR;
+          ret = GNUNET_SYSERR;
 
         if (min_group > age_group)
           continue;
@@ -218,9 +218,14 @@ test_attestation (void)
           min_group);
 
         if (GNUNET_OK != ret)
-          return ret;
+          break;
       }
+
+      TALER_age_commitment_proof_free (&acp[i]);
     }
+
+    if (GNUNET_SYSERR == ret)
+      return ret;
   }
   return GNUNET_OK;
 }

-- 
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]