From dbe4f27d5f0d6c5293e582326e99c82a2f97e71c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 21 Feb 2019 10:57:55 +0900 Subject: [PATCH] shareable: Add comments Oops, 0dcb53d2903b2802cd3fb528e64aa2614d7803ce did not make sense. --- internal/shareable/shareable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shareable/shareable.go b/internal/shareable/shareable.go index d07788cc0..f9cd825c0 100644 --- a/internal/shareable/shareable.go +++ b/internal/shareable/shareable.go @@ -54,7 +54,7 @@ func (b *backend) TryAlloc(width, height int) (*packing.Node, bool) { } nExtended++ if n := page.Alloc(width, height); n != nil { - page.Free(n) + // The page is just for emulation, so we don't have to free it. break } }