From 2d3a573977417d917c16742d8d9d8ead047d0ebc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 May 2026 22:29:35 +0200 Subject: Misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_wipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'librecrypt_wipe.c') diff --git a/librecrypt_wipe.c b/librecrypt_wipe.c index a704ef0..ac99d63 100644 --- a/librecrypt_wipe.c +++ b/librecrypt_wipe.c @@ -44,6 +44,7 @@ main(void) char *buf; SET_UP_ALARM(); + INIT_RESOURCE_TEST(); #if defined(__GNUC__) # pragma GCC diagnostic ignored "-Wnonnull" @@ -56,8 +57,9 @@ main(void) buf = malloc(256u); memset(buf, 99, 256u); librecrypt_wipe(buf, 256u); - free(buf); /* TODO should test memory is wiped */ + free(buf); + STOP_RESOURCE_TEST(); return 0; } -- cgit v1.2.3-70-g09d2