aboutsummaryrefslogtreecommitdiffstats
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-26 23:24:46 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-26 23:24:46 +0000
commita7524e343c1db6c3d336e0223029a1392fa080e2 (patch)
tree69a30e0e5d0cbe200622e7885f07f19cf27d56c8 /ext/syck/syck.c
parent10b598499b61d2c95a417f145e4cc70d96aeee71 (diff)
downloadruby-a7524e343c1db6c3d336e0223029a1392fa080e2.tar.gz
* lib/yaml/rubytypes.rb: passing Range tests.
* ext/syck/syck.h: version 0.44. * ext/syck/gram.c: transfers no longer open an indentation. fixed transfers which precede blocks. * ext/syck/token.c: ditto. * ext/syck/syck.c: fixed segfault if an anchor has been released already. * ext/syck/node.c (syck_free_members): organized order of free'd nodes. * ext/syck/rubyext.c (syck_emitter_write_m): test for proper string with StringValue. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index ec4e7a1efd..72a883df74 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -198,7 +198,8 @@ syck_lookup_sym( SyckParser *p, SYMID id, char **data )
int
syck_st_free_nodes( char *key, SyckNode *n, char *arg )
{
- syck_free_node( n );
+ if ( n != (void *)1 ) syck_free_node( n );
+ n = NULL;
return ST_CONTINUE;
}