Blame SOURCES/wireshark-1.10.6-CVE-2014-2283.patch

6415a4
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c
6415a4
index 32f6b6f..1715be4 100644
6415a4
--- a/epan/dissectors/packet-rlc.c
6415a4
+++ b/epan/dissectors/packet-rlc.c
6415a4
@@ -413,7 +413,7 @@ rlc_sdu_create(void)
6415a4
 {
6415a4
     struct rlc_sdu *sdu;
6415a4
 
6415a4
-    sdu = (struct rlc_sdu *)se_alloc0(sizeof(struct rlc_sdu));
6415a4
+    sdu = (struct rlc_sdu *)g_malloc0(sizeof(struct rlc_sdu));
6415a4
     return sdu;
6415a4
 }
6415a4
 
6415a4
@@ -474,7 +474,7 @@ rlc_frag_create(tvbuff_t *tvb, enum rlc_mode mode, packet_info *pinfo,
6415a4
 {
6415a4
     struct rlc_frag *frag;
6415a4
 
6415a4
-    frag = (struct rlc_frag *)se_alloc0(sizeof(struct rlc_frag));
6415a4
+    frag = (struct rlc_frag *)g_malloc0(sizeof(struct rlc_frag));
6415a4
     rlc_frag_assign(frag, mode, pinfo, seq, li);
6415a4
     rlc_frag_assign_data(frag, tvb, offset, length);
6415a4
 
6415a4
@@ -518,6 +518,7 @@ free_sequence_table_entry_data(gpointer data)
6415a4
         g_list_free(list->list);
6415a4
         list->list = NULL;   /* for good measure */
6415a4
     }
6415a4
+    g_free(list);
6415a4
 }
6415a4
 
6415a4
 /** Utility functions used for various comparions/cleanups in tree **/
6415a4
@@ -875,7 +876,7 @@ get_frags(packet_info * pinfo, struct rlc_channel * ch_lookup)
6415a4
     } else if (pinfo != NULL) {
6415a4
         struct rlc_channel *ch;
6415a4
         ch = rlc_channel_create(ch_lookup->mode, pinfo);
6415a4
-        frags = (struct rlc_frag **)se_alloc0(sizeof(struct rlc_frag *) * 4096);
6415a4
+        frags = (struct rlc_frag **)g_malloc0(sizeof(struct rlc_frag *) * 4096);
6415a4
         g_hash_table_insert(fragment_table, ch, frags);
6415a4
     } else {
6415a4
         return NULL;
6415a4
@@ -1227,7 +1228,7 @@ rlc_is_duplicate(enum rlc_mode mode, packet_info *pinfo, guint16 seq,
6415a4
     list = (struct rlc_seqlist *)g_hash_table_lookup(sequence_table, &lookup.ch);
6415a4
     if (!list) {
6415a4
         /* we see this channel for the first time */
6415a4
-        list = (struct rlc_seqlist *)se_alloc0(sizeof(*list));
6415a4
+        list = (struct rlc_seqlist *)g_malloc0(sizeof(*list));
6415a4
         rlc_channel_assign(&list->ch, mode, pinfo);
6415a4
         g_hash_table_insert(sequence_table, &list->ch, list);
6415a4
     }