Wireshark-bugs: [Wireshark-bugs] [Bug 1009] New: XML dissector frees wrong object

Date: Wed, 19 Jul 2006 19:03:22 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1009

           Summary: XML dissector frees wrong object
           Product: Wireshark
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: High
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: wireshark@xxxxxxxxxx


Index: epan/dissectors/packet-xml.c
===================================================================
--- epan/dissectors/packet-xml.c        (revision 18765)
+++ epan/dissectors/packet-xml.c        (working copy)
@@ -694,7 +694,7 @@
        g_ptr_array_free(dtd_data->elements,TRUE);

        while(dtd_data->attributes->len) {
-               dtd_named_list_t* nl =
g_ptr_array_remove_index_fast(dtd_data->elements,0);
+               dtd_named_list_t* nl =
g_ptr_array_remove_index_fast(dtd_data->attributes,0);
                g_ptr_array_free(nl->list,TRUE);
                g_free(nl);
        }


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.