summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/test/sha2.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-03-16 16:55:38 +0000
committerFlorin Coras <florin.coras@gmail.com>2023-03-17 16:34:06 +0000
commitc7d3a5b9688e094fde987d0caff2bfb826e7e4e1 (patch)
treed4f87a4d7b8e80fb21c5cc817b862f68e9b55190 /src/vppinfra/test/sha2.c
parentf8b61fb538046e287063864349d43e98b62b5faf (diff)
vppinfra: auto-free test memory
Type: improvement Change-Id: Ibc40a02c8c45fc8d9409c9a86fea7aaf70d9c048 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/test/sha2.c')
-rw-r--r--src/vppinfra/test/sha2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vppinfra/test/sha2.c b/src/vppinfra/test/sha2.c
index 9b4abbed657..0924461447c 100644
--- a/src/vppinfra/test/sha2.c
+++ b/src/vppinfra/test/sha2.c
@@ -305,10 +305,6 @@ check_digest (clib_error_t *err, int tc, u8 *calculated, const u8 *expected,
test_perf_event_enable (tp); \
clib_hmac_sha##bits (key, *kl, data, *np, digest); \
test_perf_event_disable (tp); \
- \
- test_mem_free (key); \
- test_mem_free (data); \
- test_mem_free (digest); \
} \
REGISTER_TEST (clib_hmac_sha##bits) = { \
.name = "clib_hmac_sha" #bits, \