aboutsummaryrefslogtreecommitdiffstats
path: root/epan/expert.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-01-10 19:04:06 -0500
committerMichael Mann <mmann78@netscape.net>2015-01-11 00:27:57 +0000
commitf5c4d06dbaf2c8468588e0b35e386045c1107ea4 (patch)
tree8806d34bf32d34bc7c14c53cbdcd9d0720ac05b1 /epan/expert.c
parentfdd6554ccd1b01554865323045033db9ca858f97 (diff)
Replace some "low hanging fruit" uses of emem.
Most of the remaining ep_ uses are grouped with specific functionality. Change-Id: I8fa64a17acc6bcdcf6891b2d28715ac0c58f1a4a Reviewed-on: https://code.wireshark.org/review/6484 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/expert.c')
-rw-r--r--epan/expert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c
index 75167aa30b..d82937293d 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -512,13 +512,13 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever
if (!tap)
return;
- ei = ep_new(expert_info_t);
+ ei = wmem_new(wmem_packet_scope(), expert_info_t);
ei->packet_num = PINFO_FD_NUM(pinfo);
ei->group = group;
ei->severity = severity;
ei->protocol = pinfo->current_proto;
- ei->summary = ep_strdup(formatted);
+ ei->summary = wmem_strdup(wmem_packet_scope(), formatted);
/* if we have a proto_item (not a faked item), set expert attributes to it */
if (pi != NULL && PITEM_FINFO(pi) != NULL) {