summaryrefslogtreecommitdiff
path: root/src/util/test_age_restriction.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-03-28 12:33:41 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-03-28 12:33:41 +0200
commitccf2d69dfb3da4ef62dfb868252dc6fda46d2ae0 (patch)
tree35296b20368afb37013eb15491ff242eaac342d8 /src/util/test_age_restriction.c
parent488d217381b392ede199d55708ed73417a7828ed (diff)
downloadexchange-ccf2d69dfb3da4ef62dfb868252dc6fda46d2ae0.tar.gz
exchange-ccf2d69dfb3da4ef62dfb868252dc6fda46d2ae0.tar.bz2
exchange-ccf2d69dfb3da4ef62dfb868252dc6fda46d2ae0.zip
-fix leak in test_age_restriction.c
Diffstat (limited to 'src/util/test_age_restriction.c')
-rw-r--r--src/util/test_age_restriction.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util/test_age_restriction.c b/src/util/test_age_restriction.c
index 0b182bd49..bf64a705d 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;
}