gtp: change g_malloc to wmem_alloc.
Change-Id: I0e8ce74f8b656e9e5b4db1fac4a562dcd7856ab2 Reviewed-on: https://code.wireshark.org/review/14919 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
d6f69751c0
commit
72444b7d1c
|
@ -8512,7 +8512,7 @@ dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
|
|||
/* No. Attach that information to the conversation, and add
|
||||
* it to the list of information structures.
|
||||
*/
|
||||
gtp_info = (gtp_conv_info_t *)g_malloc(sizeof(gtp_conv_info_t));
|
||||
gtp_info = (gtp_conv_info_t *)wmem_alloc(wmem_file_scope(), sizeof(gtp_conv_info_t));
|
||||
/*Request/response matching tables*/
|
||||
gtp_info->matched = g_hash_table_new(gtp_sn_hash, gtp_sn_equal_matched);
|
||||
gtp_info->unmatched = g_hash_table_new(gtp_sn_hash, gtp_sn_equal_unmatched);
|
||||
|
@ -8964,7 +8964,6 @@ gtp_cleanup(void)
|
|||
gtp_info->unmatched=NULL;
|
||||
|
||||
next = gtp_info->next;
|
||||
g_free(gtp_info);
|
||||
gtp_info = next;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue