diff options
author | Evan Huus <eapache@gmail.com> | 2021-07-16 11:36:34 -0400 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-07-21 05:38:29 +0000 |
commit | d6d7dd1e5664810b368231d03d56465112e3d82e (patch) | |
tree | 4f95a8b408e58b8edc0b4a2c17831b58049beaf3 /epan/expert.c | |
parent | ef542759d0c7003a495436f2194d5821bfc30bd4 (diff) |
First pass pinfo->pool conversion
Automated find/replace of wmem_packet_scope() with pinfo->pool in all
files where it didn't cause a build failure.
I also tweaked a few of the docs which got caught up.
Diffstat (limited to 'epan/expert.c')
-rw-r--r-- | epan/expert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c index faef02fae0..6536292eca 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -590,14 +590,14 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever if (!tap) return; - ei = wmem_new(wmem_packet_scope(), expert_info_t); + ei = wmem_new(pinfo->pool, expert_info_t); ei->packet_num = pinfo->num; ei->group = group; ei->severity = severity; ei->hf_index = hf_index; ei->protocol = pinfo->current_proto; - ei->summary = wmem_strdup(wmem_packet_scope(), formatted); + ei->summary = wmem_strdup(pinfo->pool, formatted); /* if we have a proto_item (not a faked item), set expert attributes to it */ if (pi != NULL && PITEM_FINFO(pi) != NULL) { |