Skip to content

Commit

Permalink
Ignore split unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Jan 21, 2025
1 parent 7c01f80 commit 9cd2a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mem/buffers.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func (b *buffer) split(n int) (Buffer, Buffer) {
panic("Cannot split freed buffer")
}

b.refs.Add(100)
b.Ref()
split := newBuffer()
split.origData = b.origData
Expand Down

0 comments on commit 9cd2a69

Please sign in to comment.