diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:08:52 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:08:52 +0000 |
commit | 24dfe5e749eaa34bc6c1cba15811efbcc0a578f4 (patch) | |
tree | b0672ec2bf651769769056fd0b03d8f807695de8 /test | |
parent | 3a4de69e38f1e7b61ce1436e01b09e694e101906 (diff) | |
download | ruby-24dfe5e749eaa34bc6c1cba15811efbcc0a578f4.tar.gz |
Fixed tempfile leak.
From: SHIBATA Hiroshi <hsbt@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_package_tar_header.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_package_tar_header.rb b/test/rubygems/test_gem_package_tar_header.rb index a0719a7531..43f508df45 100644 --- a/test/rubygems/test_gem_package_tar_header.rb +++ b/test/rubygems/test_gem_package_tar_header.rb @@ -160,6 +160,7 @@ group\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000 assert_raises ArgumentError do new_header = Gem::Package::TarHeader.from io end + io.close! if io.respond_to? :close! end end |