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 2d9df5a1ae)
pull/12404/head
Jeff Lucovsky 10 months ago
parent a10ee8d6bc
commit 2be430ec0c

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

Loading…
Cancel
Save