diff --git a/pkg/local_object_storage/metabase/put.go b/pkg/local_object_storage/metabase/put.go index b898e872..e23760a2 100644 --- a/pkg/local_object_storage/metabase/put.go +++ b/pkg/local_object_storage/metabase/put.go @@ -379,7 +379,7 @@ func decodeList(data []byte) (lst [][]byte, err error) { } r := io.NewBinReaderFromBuf(data) l := r.ReadVarUint() - lst = make([][]byte, l) + lst = make([][]byte, l, l+1) for i := range lst { lst[i] = r.ReadVarBytes() }