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; }