From 799f01f78f1ae4f503c99a4d94e29124bf0221cd Mon Sep 17 00:00:00 2001 From: Sergey Zhidkih Date: Mon, 1 Dec 2025 16:10:25 +0300 Subject: [PATCH] util-spm-hs: add missing deallocator Add missing deallocator for expr when hs_compile fails. Bug: #8146 --- src/util-spm-hs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util-spm-hs.c b/src/util-spm-hs.c index e84c66951a..a08fdb7daf 100644 --- a/src/util-spm-hs.c +++ b/src/util-spm-hs.c @@ -81,6 +81,7 @@ static int HSBuildDatabase(const uint8_t *needle, uint16_t needle_len, &compile_err); if (err != HS_SUCCESS) { HSLogCompileError(expr, compile_err, err); + SCFree(expr); return -1; }