diff options
author | David Perry <boolean263@protonmail.com> | 2021-07-27 21:36:43 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com> | 2021-07-27 21:36:43 +0000 |
commit | 6e8c7283d6f93b2dde6f16301c0f280a6cf7f481 (patch) | |
tree | 1dccd550de229eebeb619999238ce11fe57c7276 /epan/dissectors/packet-asterix.c | |
parent | 6d8bfc146d5bbe2c0ddc759757a8f9cf83c7b66d (diff) |
Change some `wmem_packet_scope()` to `pinfo->pool`
Diffstat (limited to 'epan/dissectors/packet-asterix.c')
-rw-r--r-- | epan/dissectors/packet-asterix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-asterix.c b/epan/dissectors/packet-asterix.c index b36a03c00c..51f99a8afb 100644 --- a/epan/dissectors/packet-asterix.c +++ b/epan/dissectors/packet-asterix.c @@ -12928,7 +12928,7 @@ static void asterix_build_subtree (tvbuff_t *tvb, packet_info *pinfo, guint offs break; case FIELD_PART_CALLSIGN: str_buffer = wmem_strdup_printf( - wmem_packet_scope (), + pinfo->pool, "%c%c%c%c%c%c%c%c", AISCode[(value >> 42) & 63], AISCode[(value >> 36) & 63], @@ -12942,7 +12942,7 @@ static void asterix_build_subtree (tvbuff_t *tvb, packet_info *pinfo, guint offs break; case FIELD_PART_IAS_IM: /* special processing for I021/150 and I062/380#4 because Air Speed depends on IM subfield */ - air_speed_im_bit = wmem_new (wmem_packet_scope (), guint8); + air_speed_im_bit = wmem_new (pinfo->pool, guint8); *air_speed_im_bit = (tvb_get_guint8 (tvb, offset_in_tvb) & 0x80) >> 7; /* Save IM info for the packet. key = 21150. */ p_add_proto_data (pinfo->pool, pinfo, proto_asterix, 21150, air_speed_im_bit); |