summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-03 17:41:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-03 17:41:11 +0000
commita7f999b68ec14850b1a4b74145eb4dd25dda2bc5 (patch)
tree721d988dc948a6ee0009f6d24e5d809f5ccfb4f2 /ext/syck
parent5f78b3d2fa316db3582afa36ddc72a6a5ce64610 (diff)
* ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
type_tag. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07808] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/yaml2byte.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/syck/yaml2byte.c b/ext/syck/yaml2byte.c
index 61cd8c8..821a3cd 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)