summaryrefslogtreecommitdiff
path: root/epan/expert.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-13 23:20:38 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-13 23:20:38 +0000
commit8e121c003c45d75b9427671bdb060604c8d5bb7b (patch)
tree3aa7762f60fba8e739bb43fb330cdc44789595ce /epan/expert.c
parenta086a018dc28fc2a5af446274f07ae838d488370 (diff)
downloadwireshark-8e121c003c45d75b9427671bdb060604c8d5bb7b.tar.gz
Don't se_leak expert_info records.
se_alloc them where and if needed, not every time expert_set_info_vformat is called. svn path=/trunk/; revision=17293
Diffstat (limited to 'epan/expert.c')
-rw-r--r--epan/expert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/expert.c b/epan/expert.c
index ec51fea0c2..9382fbaa3e 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -86,12 +86,12 @@ packet_info *pinfo, proto_item *pi, int group, int severity, const char *format,
if ((ret == -1) || (ret >= sizeof(formatted)))
formatted[sizeof(formatted) - 1] = '\0';
- ei = se_alloc(sizeof(expert_info_t));
+ ei = ep_alloc(sizeof(expert_info_t));
ei->packet_num = pinfo ? pinfo->fd->num : 0;
ei->group = group;
ei->severity = severity;
- ei->protocol = se_strdup(pinfo->current_proto);
- ei->summary = se_strdup(formatted);
+ ei->protocol = ep_strdup(pinfo->current_proto);
+ ei->summary = ep_strdup(formatted);
ei->pitem = NULL;
/* if we have a proto_item (not a faked item), set expert attributes to it */