util-spm-hs: add missing deallocator

Add missing deallocator for expr when hs_compile fails.

Bug: #8146
pull/14618/head
Sergey Zhidkih 5 months ago committed by Victor Julien
parent 11073a0190
commit 799f01f78f

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

Loading…
Cancel
Save