aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--dir.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ff87a9225..49e2879851 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/dir.c b/dir.c
index d7e61a2a01..213d6cdb87 100644
--- a/dir.c
+++ b/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;
}