diff options
author | John Thacker <johnthacker@gmail.com> | 2023-03-01 07:41:03 -0500 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2023-03-03 22:58:12 +0000 |
commit | c9c5617aedf41b8ff0c33d7a9c189a12768f25f8 (patch) | |
tree | 3721d25417b666ea0f2117f007f01c5c77c1e3ba /epan/dissectors | |
parent | ccf01edf0436788f81f2ce5f400b5a6d940e901a (diff) |
UDS: Use wmem to create a string
Related to #18878
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-uds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-uds.c b/epan/dissectors/packet-uds.c index 72a58da602..8db7991eaa 100644 --- a/epan/dissectors/packet-uds.c +++ b/epan/dissectors/packet-uds.c @@ -943,7 +943,7 @@ uds_proto_tree_add_address_name(proto_tree *tree, int hf, tvbuff_t *tvb, const g if (address_name != NULL) { ti = proto_tree_add_string(tree, hf, tvb, offset, size, address_name); } else { - address_name = g_strdup_printf("%d", addr); + address_name = wmem_strdup_printf(wmem_packet_scope(), "%d", addr); ti = proto_tree_add_string(tree, hf, tvb, offset, size, address_name); } |