diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 02:36:51 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 02:36:51 +0000 |
commit | 7d2829e9d8ad81874bd8c24b1342a57ee11bb643 (patch) | |
tree | f8c9b21bef9001d17abb4b412c4895a7e2c9a1c2 /dir.c | |
parent | 285fb001952a688f5213596ded1c244469092353 (diff) | |
download | ruby-7d2829e9d8ad81874bd8c24b1342a57ee11bb643.tar.gz |
* dir.rb: fix resource leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |