From fc2b1d38350de264e738cfea0910fddf61401214 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Sun, 13 Sep 2026 23:22:06 +0200 Subject: [PATCH] fix: drop the allocator release for slice paths in update --- func.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/func.go b/func.go index 35c99fd..d352716 100644 --- a/func.go +++ b/func.go @@ -1611,8 +1611,6 @@ func update(v any, path []any, n any, a allocator) (any, error) { return nil, &expectedArrayError{v} } case map[string]any: - // A slice bound stays reachable through the path. - a.release(p) switch v := v.(type) { case nil: return updateArraySlice(nil, p, path[1:], n, a)