mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73412af59a
commit
3f1a95ce65
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Sep 12 01:21:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr.
|
||||
|
||||
Thu Sep 11 20:18:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* test/win32ole/test_err_in_callback.rb (teardown): get rid
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue