From a46062fd2446cc55719410ac3635a9c3bec38452 Mon Sep 17 00:00:00 2001 From: Tony Holdstock-Brown Date: Wed, 6 Nov 2024 03:55:54 -0800 Subject: [PATCH] fix allocation --- engine_stringmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine_stringmap.go b/engine_stringmap.go index 00fe359..492cb28 100644 --- a/engine_stringmap.go +++ b/engine_stringmap.go @@ -140,7 +140,7 @@ func (n *stringLookup) equalitySearch(ctx context.Context, variable string, inpu // Iterate through all matching values, and only take those expressions which match our // current variable name. - filtered := make([]*StoredExpressionPart, len(n.equality)) + filtered := make([]*StoredExpressionPart, len(n.equality[hashedInput])) i := 0 for _, part := range n.equality[hashedInput] { if part.Ident != nil && *part.Ident != variable {