diff --git a/ChangeLog b/ChangeLog index 5f48063187..fda232bbb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,10 @@ Thu May 4 02:24:16 2006 Yukihiro Matsumoto * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler . [ruby-core:07810] + * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free + type_tag. a patch from Pat Eyler . + [ruby-core:07808] + Wed May 3 02:12:07 2006 Yukihiro Matsumoto * ext/socket/socket.c (make_hostent_internal): accept ai_family diff --git a/ext/syck/yaml2byte.c b/ext/syck/yaml2byte.c index 61cd8c8eac..821a3cd5b5 100644 --- a/ext/syck/yaml2byte.c +++ b/ext/syck/yaml2byte.c @@ -145,6 +145,7 @@ syck_yaml2byte_handler(p, n) strcat( type_tag, "!" ); strcat( type_tag, n->type_id ); bytestring_append( val, YAMLBYTE_TRANSFER, type_tag, NULL); + S_FREE(type_tag); } } switch (n->kind)