1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/psych/lib/psych.rb (load_file): make sure opened yaml files are

also closed. [ruby-core:41088]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2011-11-17 01:38:16 +00:00
parent 1f86c08fdf
commit 07636686da
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 17 10:36:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
also closed. [ruby-core:41088]
Wed Nov 16 18:13:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in (LIBRUBY_A): check if generated linked library is

View file

@ -229,7 +229,7 @@ module Psych
# Load the document contained in +filename+. Returns the yaml contained in
# +filename+ as a ruby object
def self.load_file filename
self.load File.open(filename)
File.open(filename) { |f| self.load f }
end
# :stopdoc: