summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 811ab3edad..8d315fa925 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -438,6 +438,7 @@ class TestGc < Test::Unit::TestCase
while GC.stat_heap(0, :heap_allocatable_pages) != 0
ary << Object.new
end
+ ary.clear
ary = nil
# Clear all the objects that were allocated.