aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-someip.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-someip.c')
-rw-r--r--epan/dissectors/packet-someip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-someip.c b/epan/dissectors/packet-someip.c
index 2070ee4a2a..8c9413a09d 100644
--- a/epan/dissectors/packet-someip.c
+++ b/epan/dissectors/packet-someip.c
@@ -2654,7 +2654,7 @@ dissect_someip_payload_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
str_encoding = ENC_ASCII | ENC_NA;
}
- buf = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, length, str_encoding);
+ buf = tvb_get_string_enc(pinfo->pool, tvb, offset, length, str_encoding);
/* sanitizing buffer */
if (str_encoding & ENC_ASCII || str_encoding & ENC_UTF_8) {