Skip to content

Commit

Permalink
* dir.c (glob_helper): fixed freeing buffer. (ruby-bugs-ja:PR#332)
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Sep 12, 2002
1 parent b031fdb commit 563885c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Sep 12 17:45:15 2002 Nobuyoshi Nakada <[email protected]>

* dir.c (glob_helper): fixed freeing buffer. (ruby-bugs-ja:PR#332)

Thu Sep 12 00:09:32 2002 Nobuyoshi Nakada <[email protected]>

* eval.c (rb_trap_eval): preserve thread status and so on.
Expand Down
2 changes: 2 additions & 0 deletions dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ glob_helper(path, sub, flags, func, arg)
status = glob_helper(buf, t, flags, func, arg);
free(buf);
if (status) goto finalize;
continue;
}
free(buf);
continue;
Expand All @@ -796,6 +797,7 @@ glob_helper(path, sub, flags, func, arg)
sprintf(buf, "%s%s%s", base, (BASE) ? "/" : "", dp->d_name);
if (!m) {
status = glob_call_func(func, path, arg);
free(buf);
if (status) goto finalize;
continue;
}
Expand Down

0 comments on commit 563885c

Please sign in to comment.