summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/leakchecker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index 336809bc40..be4b83681f 100644
--- a/test/lib/leakchecker.rb
+++ b/test/lib/leakchecker.rb
@@ -61,7 +61,7 @@ class LeakChecker
(h[fd] ||= []) << [io, autoclose, inspect]
}
fd_leaked.each {|fd|
- str = ''
+ str = ''.dup
if h[fd]
str << ' :'
h[fd].map {|io, autoclose, inspect|