shareable: Bug fix: Node-leak when extending a page

This is very rare and not so serious I think, but is still a bug.
This commit is contained in:
Hajime Hoshi 2019-02-21 10:47:34 +09:00
parent 0bf911905a
commit 0dcb53d290

View File

@ -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
}
}