From 0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 7 May 2014 10:37:50 -0600 Subject: Fix bucket free. --- cursor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cursor.go') diff --git a/cursor.go b/cursor.go index 56948fc..31a3d5f 100644 --- a/cursor.go +++ b/cursor.go @@ -148,7 +148,7 @@ func (c *Cursor) seek(seek []byte) (key []byte, value []byte, flags uint32) { func (c *Cursor) first() { for { // Exit when we hit a leaf page. - ref := &c.stack[len(c.stack)-1] + var ref = &c.stack[len(c.stack)-1] if ref.isLeaf() { break } -- cgit v1.2.3