mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
bbc287616f
commit
317df24d33
@ -12,11 +12,6 @@ sixtp_stack_frame_destroy(sixtp_stack_frame *sf) {
|
||||
g_slist_free(sf->data_from_children);
|
||||
sf->data_from_children = NULL;
|
||||
|
||||
/* if(sf->tag) */
|
||||
/* { */
|
||||
/* g_free(sf->tag); */
|
||||
/* } */
|
||||
|
||||
g_free(sf);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/* grab it before it goes away - we shouldn't need to g_strdup
|
||||
because this string is held by the parent parser's hash table. */
|
||||
/* grab it before it goes away - we own the reference */
|
||||
end_tag = current_frame->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,
|
||||
child_result_data);
|
||||
}
|
||||
|
||||
g_free (end_tag);
|
||||
}
|
||||
|
||||
xmlEntityPtr
|
||||
|
Loading…
Reference in New Issue
Block a user