diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-04-15 16:00:22 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-04-22 04:41:52 +0000 |
commit | 493f6e223b8b554c96922b6f8c47f8b45992bf28 (patch) | |
tree | d2857d647e58371a84794295cce3c8b1bcb43a5c /epan/dissectors/packet-epl.c | |
parent | 71750b28609cd08c046d2bbcafa74e2380da2091 (diff) |
epl: change g_malloc to wmem_alloc.
Change-Id: I3d099047be2a4ef0e104f5f54b6b458387e7a1f0
Reviewed-on: https://code.wireshark.org/review/14928
Reviewed-by: Christoph Schlosser <christoph@schlosser.xyz>
Petri-Dish: Roland Knall <rknall@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-epl.c')
-rw-r--r-- | epan/dissectors/packet-epl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c index 97e67a588e..b1763af1a0 100644 --- a/epan/dissectors/packet-epl.c +++ b/epan/dissectors/packet-epl.c @@ -1593,9 +1593,9 @@ epl_duplication_insert(GHashTable* table, gpointer ptr, guint32 frame) /* insert the data struct into the table */ else { - key = (duplication_key *)g_memdup(ptr,sizeof(duplication_key)); + key = (duplication_key *)wmem_memdup(wmem_file_scope(), ptr,sizeof(duplication_key)); /* create memory */ - data = (duplication_data *)g_malloc0(sizeof(duplication_data)); + data = (duplication_data *)wmem_alloc0(wmem_file_scope(), sizeof(duplication_data)); data->frame = frame; g_hash_table_insert(table,(gpointer)key, data); } |