diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 14:36:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 14:36:36 +0000 |
commit | 76e37aa6364fa7613b9b517b71da9bb13bf294a8 (patch) | |
tree | f3aed9bba092ee22e9e218988a19128452f5dfc3 /lib/rubygems | |
parent | 9d630784b84e8acaee4b1cb20f52070efa622303 (diff) | |
download | ruby-76e37aa6364fa7613b9b517b71da9bb13bf294a8.tar.gz |
ext_conf_builder.rb: fix tempfile leak
* lib/rubygems/ext/ext_conf_builder.rb (build): ensure to remove
temporary siteconf script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 990fd18524..05506b265b 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -38,11 +38,11 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder run cmd, results ensure FileUtils.mv 'mkmf.log', dest_path if File.exist? 'mkmf.log' + siteconf.unlink end ENV["DESTDIR"] = nil ENV["RUBYOPT"] = rubyopt - siteconf.unlink make dest_path, results |