From 6e4e995ae38d7bece7f877cd4ff387fad79bcc83 Mon Sep 17 00:00:00 2001 From: Norman Ashley Date: Thu, 14 Sep 2023 23:45:44 -0400 Subject: [PATCH] Fix mem leak --- tests/test_sig_stfl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_sig_stfl.c b/tests/test_sig_stfl.c index 58ccb30f63..3f830d13cb 100644 --- a/tests/test_sig_stfl.c +++ b/tests/test_sig_stfl.c @@ -473,6 +473,7 @@ static OQS_STATUS sig_stfl_test_correctness(const char *method_name, const char if (signature) { OQS_MEM_insecure_free(signature - sizeof(magic_t)); } + OQS_MEM_secure_free(sk_buf, sk_buf_len); OQS_SIG_STFL_free(sig); OQS_MEM_insecure_free(read_pk_buf);