two minor leaks

svn path=/trunk/; revision=20443
This commit is contained in:
Luis Ontanon 2007-01-15 20:14:00 +00:00
parent 47730bc1e8
commit 27556d141a
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@ doctype ::= TAG_START DOCTYPE_KW NAME(Name) OPEN_BRACKET dtd_parts CLOSE_BRACKET
if(bd->proto_root)
g_free(bd->proto_root);
bd->proto_root = g_strdup(Name->text);
bd->proto_root = Name->text;
g_strdown(bd->proto_name);

View File

@ -337,6 +337,8 @@ extern dtd_build_data_t* dtd_parse(GString* s) {
yyrestart(NULL);
if (location) g_free(location);
location = NULL;
DtdParseFree(pParser, g_free );