mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dir.rb: fix resource leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
285fb00195
commit
7d2829e9d8
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Jun 29 11:36:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* dir.rb: fix resource leak.
|
||||
|
||||
Sun Jun 29 09:43:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and
|
||||
|
|
1
dir.c
1
dir.c
|
@ -1351,6 +1351,7 @@ glob_helper(
|
|||
|
||||
new_beg = new_end = GLOB_ALLOC_N(struct glob_pattern *, (end - beg) * 2);
|
||||
if (!new_beg) {
|
||||
GLOB_FREE(buf);
|
||||
status = -1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue