Skip to content

Commit

Permalink
Fix Tempfile leak
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Aug 28, 2020
1 parent 7ffd614 commit d347e89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/rbconfig/rbconfig_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
File.open('/bin/sh', 'rb') do |src|
IO.copy_stream(src, dst)
dst.flush
out =`#{strip} #{dst.to_path}`
out = `#{strip} #{dst.to_path}`
$?.should.success?
end
dst.close!
end
end
end
Expand Down

0 comments on commit d347e89

Please sign in to comment.