[前][次][番号順一覧][スレッド一覧]

ruby-changes:50309

From: hsbt <ko1@a...>
Date: Fri, 16 Feb 2018 17:08:56 +0900 (JST)
Subject: [ruby-changes:50309] hsbt:r62424 (trunk): Fixed tempfile leak.

hsbt	2018-02-16 17:08:52 +0900 (Fri, 16 Feb 2018)

  New Revision: 62424

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62424

  Log:
    Fixed tempfile leak.
    
    From: SHIBATA Hiroshi <hsbt@r...>

  Modified files:
    trunk/test/rubygems/test_gem_package_tar_header.rb
Index: test/rubygems/test_gem_package_tar_header.rb
===================================================================
--- test/rubygems/test_gem_package_tar_header.rb	(revision 62423)
+++ test/rubygems/test_gem_package_tar_header.rb	(revision 62424)
@@ -160,6 +160,7 @@ group\000\000\000\000\000\000\000\000\00 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package_tar_header.rb#L160
       assert_raises ArgumentError do
         new_header = Gem::Package::TarHeader.from io
       end
+      io.close! if io.respond_to? :close!
     end
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]