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:
Guy Harris 2016-04-28 14:53:11 -07:00
parent 65c6f79ddc
commit 82e39fc45f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {