fix: drop the allocator release for slice paths in update
This commit is contained in:
1 parent
096ffac211
commit
fc2b1d3835
1 file changed
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user