From: Jeff Lucovsky Date: Sun, 22 Dec 2024 13:04:58 +0000 (-0500) Subject: flow/var: Release key storage X-Git-Tag: suricata-8.0.0-beta1~619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9df5a1aea4407846ce7e7e2fac58f65eb19073;p=thirdparty%2Fsuricata.git flow/var: Release key storage Issue: 7466 This commit releases the memory for the flow variable "key" when the flow variable is of type string. The key is allocated in the Lua extension logic. --- diff --git a/src/flow-var.c b/src/flow-var.c index a92358f271..5377607433 100644 --- a/src/flow-var.c +++ b/src/flow-var.c @@ -166,6 +166,7 @@ void FlowVarFree(FlowVar *fv) if (fv->datatype == FLOWVAR_TYPE_STR) { if (fv->data.fv_str.value != NULL) SCFree(fv->data.fv_str.value); + SCFree(fv->key); } SCFree(fv); }