From 2d9df5a1aea4407846ce7e7e2fac58f65eb19073 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Sun, 22 Dec 2024 08:04:58 -0500 Subject: [PATCH] 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. --- src/flow-var.c | 1 + 1 file changed, 1 insertion(+) 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); }