forked from osmocom/wireshark
Don't mix g_malloc() and wmem_alloc().
Always allocate sub_net_hashipv4 structures with wmem. Bug: 12386 Change-Id: Ibc4f09c267a2e651d9120ef67d4d5b77635172d6 Reviewed-on: https://code.wireshark.org/review/15152 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
65c6f79ddc
commit
82e39fc45f
|
@ -2304,7 +2304,7 @@ subnet_entry_set(guint32 subnet_addr, const guint32 mask_length, const gchar* na
|
|||
}
|
||||
}
|
||||
|
||||
new_tp = g_new(sub_net_hashipv4_t, 1);
|
||||
new_tp = wmem_new(wmem_epan_scope(), sub_net_hashipv4_t);
|
||||
tp->next = new_tp;
|
||||
tp = new_tp;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue