aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gmr1_rr.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2021-07-16 11:36:34 -0400
committerEvan Huus <eapache@gmail.com>2021-07-21 09:54:57 -0400
commit8ee8808876191e1b398fced6a1712d2fded6da23 (patch)
tree93c10e5c7397c4e94a0c250080ac34654efdf8d6 /epan/dissectors/packet-gmr1_rr.c
parent9ed273e5da0b8b3f62e021a255d7b98203d1c165 (diff)
First pass pinfo->pool conversion, part 2
Automated find/replace of wmem_packet_scope() with pinfo->pool in all files where it didn't cause a build failure.
Diffstat (limited to 'epan/dissectors/packet-gmr1_rr.c')
-rw-r--r--epan/dissectors/packet-gmr1_rr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gmr1_rr.c b/epan/dissectors/packet-gmr1_rr.c
index c549862366..732a623716 100644
--- a/epan/dissectors/packet-gmr1_rr.c
+++ b/epan/dissectors/packet-gmr1_rr.c
@@ -647,14 +647,14 @@ GMR1_IE_FUNC(gmr1_ie_rr_pos_display)
/* Do not use tvb_new_octet_aligned(), GSM 7bit packing bit parsing
goes from LSB to MSB so a trick is applied here for the last byte */
txt_raw = tvb_get_ptr(tvb, offset, 11);
- txt_packed = (gchar*)wmem_alloc(wmem_packet_scope(), 11);
+ txt_packed = (gchar*)wmem_alloc(pinfo->pool, 11);
for (i=0; i<10; i++)
txt_packed[i] = (txt_raw[i] << 4) | (txt_raw[i+1] >> 4);
txt_packed[10] = txt_raw[10];
txt_packed_tvb = tvb_new_real_data(txt_packed, 11, 11);
/* Unpack text */
- txt_unpacked = tvb_get_ts_23_038_7bits_string_packed(wmem_packet_scope(), txt_packed_tvb, 0, 12);
+ txt_unpacked = tvb_get_ts_23_038_7bits_string_packed(pinfo->pool, txt_packed_tvb, 0, 12);
tvb_free(txt_packed_tvb);
/* Display it */