From dcbb5539f1837d65616cc0ad61499512e62c76c1 Mon Sep 17 00:00:00 2001 From: Jeremiah Mackey Date: Thu, 26 Mar 2026 16:39:50 +0000 Subject: [PATCH] fix SE050 hash msg buffer leak --- wolfcrypt/src/port/nxp/se050_port.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/port/nxp/se050_port.c b/wolfcrypt/src/port/nxp/se050_port.c index a4524aacc1..f20385c9fd 100644 --- a/wolfcrypt/src/port/nxp/se050_port.c +++ b/wolfcrypt/src/port/nxp/se050_port.c @@ -344,6 +344,7 @@ int se050_hash_final(SE050_HASH_Context* se050Ctx, byte* hash, size_t digestLen, if (status == kStatus_SSS_Success) { /* reset state */ + XFREE(se050Ctx->msg, se050Ctx->heap, DYNAMIC_TYPE_TMP_BUFFER); ret = se050_hash_init(se050Ctx, se050Ctx->heap); } else { ret = WC_HW_E;