diff --git a/ChangeLog b/ChangeLog index 775b276cc3..6995808990 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 12 01:21:22 2008 Yusuke Endoh + + * ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr. + Thu Sep 11 20:18:24 2008 Masaki Suketa * test/win32ole/test_err_in_callback.rb (teardown): get rid diff --git a/ext/syck/node.c b/ext/syck/node.c index 890eba9d58..fb98f655cc 100644 --- a/ext/syck/node.c +++ b/ext/syck/node.c @@ -128,7 +128,7 @@ syck_replace_str( SyckNode *n, char *str, enum scalar_style style ) void syck_replace_str2( SyckNode *n, char *str, long len, enum scalar_style style ) { - if ( n->data.str != NULL ) + if ( n->data.str->ptr != NULL ) { S_FREE( n->data.str->ptr ); n->data.str->ptr = NULL;