diff --git a/lmdb/cursor_test.go b/lmdb/cursor_test.go
index <HASH>..<HASH> 100644
--- a/lmdb/cursor_test.go
+++ b/lmdb/cursor_test.go
@@ -240,6 +240,7 @@ func TestCursor_Get_KV(t *testing.T) {
 		if err != nil {
 			return err
 		}
+		defer cur.Close()
 
 		k, v, err := cur.Get([]byte("key"), []byte("0"), GetBothRange)
 		if err != nil {
Add missing call to cur.Close()