fix: drop the allocator release for slice paths in update

This commit is contained in:
dualfroz committed 2026-09-13 23:22:06 +02:00
1 parent 096ffac211
commit fc2b1d3835
1 file changed
-2
-2
View File
@@ -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)