From d37e836a58ac1ac680ee8716ab1f0b4fc00a1f89 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 4 Mar 2003 07:04:11 +0000 Subject: * io.c (rb_io_popen): do not call rb_io_close() directly, call "close" method instead. [ruby-dev:19717] * io.c (rb_io_s_open): ditto. * hash.c (rb_any_hash): remove DEFER_INTS. all do_hash() calls in st.c are at the top of functions. No reentrant problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dir.c') diff --git a/dir.c b/dir.c index e3783b39f3..ed42213d17 100644 --- a/dir.c +++ b/dir.c @@ -778,6 +778,7 @@ glob_helper(path, sub, flags, func, arg) sprintf(buf, "%s%s%s", base, (BASE) ? "/" : "", dp->d_name); if (lstat(buf, &st) < 0) { if (errno != ENOENT) rb_sys_warning(buf); + free(buf); continue; } if (S_ISDIR(st.st_mode)) { -- cgit v1.2.3