Skip to content

Commit

Permalink
shareable: Bug fix: Node-leak when extending a page
Browse files Browse the repository at this point in the history
This is very rare and not so serious I think, but is still a bug.
  • Loading branch information
hajimehoshi committed Feb 21, 2019
1 parent 0bf9119 commit 0dcb53d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/shareable/shareable.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (b *backend) TryAlloc(width, height int) (*packing.Node, bool) {
}
nExtended++
if n := page.Alloc(width, height); n != nil {
page.Free(n)
break
}
}
Expand Down

0 comments on commit 0dcb53d

Please sign in to comment.