diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-20 07:25:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-20 07:25:07 +0000 |
commit | 60d0ddc942e1c5822bd7b88a4df61153891e82eb (patch) | |
tree | e5b0cd4f9057b7fe9e6a5019d800301a0a859cad | |
parent | 64ba5303fd885833697f026cffbeb6f98bc8ed7b (diff) | |
download | ruby-60d0ddc942e1c5822bd7b88a4df61153891e82eb.tar.gz |
* gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Nov 20 16:24:31 2007 Tanaka Akira <akr@fsij.org> + + * gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE. + Tue Nov 20 15:09:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (parser_read_escape): has8bit flag may be set with control @@ -1081,7 +1081,8 @@ gc_mark_children(VALUE ptr, int lev) break; case T_FILE: - gc_mark(obj->as.file.fptr->tied_io_for_writing, lev); + if (obj->as.file.fptr) + gc_mark(obj->as.file.fptr->tied_io_for_writing, lev); break; case T_REGEXP: |