Fix mem leak.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3648 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-02-12 23:50:34 +00:00
parent bbc287616f
commit 317df24d33
2 changed files with 3 additions and 7 deletions

View File

@ -12,11 +12,6 @@ sixtp_stack_frame_destroy(sixtp_stack_frame *sf) {
g_slist_free(sf->data_from_children); g_slist_free(sf->data_from_children);
sf->data_from_children = NULL; sf->data_from_children = NULL;
/* if(sf->tag) */
/* { */
/* g_free(sf->tag); */
/* } */
g_free(sf); g_free(sf);
} }

View File

@ -481,8 +481,7 @@ sixtp_sax_end_handler(void *user_data, const xmlChar *name) {
g_slist_prepend(parent_frame->data_from_children, child_result_data); g_slist_prepend(parent_frame->data_from_children, child_result_data);
} }
/* grab it before it goes away - we shouldn't need to g_strdup /* grab it before it goes away - we own the reference */
because this string is held by the parent parser's hash table. */
end_tag = current_frame->tag; end_tag = current_frame->tag;
PINFO("Finished with end of <%s>", end_tag); PINFO("Finished with end of <%s>", end_tag);
@ -521,6 +520,8 @@ sixtp_sax_end_handler(void *user_data, const xmlChar *name) {
end_tag, end_tag,
child_result_data); child_result_data);
} }
g_free (end_tag);
} }
xmlEntityPtr xmlEntityPtr