From 2be430ec0ccce69b70a0a97df9d83da90c23732f 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. (cherry picked from commit 2d9df5a1aea4407846ce7e7e2fac58f65eb19073) --- src/flow-var.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flow-var.c b/src/flow-var.c index a92358f27144..5377607433a0 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); }