PCP: allocate conversation info in file scope

Bug: 14488
Change-Id: I9bb85cfd58ace721ba8b957bc3351f6c017a8b69
Reviewed-on: https://code.wireshark.org/review/26293
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Pascal Quantin 2018-03-06 22:43:31 +01:00 committed by Anders Broman
parent 8f81eb2cf6
commit 035f49d2c8
1 changed files with 1 additions and 1 deletions

View File

@ -1614,7 +1614,7 @@ static int dissect_pcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
pcp_conv_info = (pcp_conv_info_t*)conversation_get_proto_data(conversation, proto_pcp);
if(pcp_conv_info == NULL) {
pcp_conv_info = (pcp_conv_info_t*)g_malloc(sizeof(pcp_conv_info_t));
pcp_conv_info = (pcp_conv_info_t*)wmem_alloc(wmem_file_scope(), sizeof(pcp_conv_info_t));
conversation_add_proto_data(conversation, proto_pcp, pcp_conv_info);
pcp_conv_info->pmid_name_candidates = wmem_array_new(wmem_file_scope(), sizeof(guint8 *));