aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto_expert.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/wslua_proto_expert.c')
-rw-r--r--epan/wslua/wslua_proto_expert.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/wslua/wslua_proto_expert.c b/epan/wslua/wslua_proto_expert.c
index 8a8079152c..e2d0452bce 100644
--- a/epan/wslua/wslua_proto_expert.c
+++ b/epan/wslua/wslua_proto_expert.c
@@ -70,7 +70,7 @@ WSLUA_CONSTRUCTOR ProtoExpert_new(lua_State* L) {
pe->ids.ei = EI_INIT_EI;
pe->ids.hf = EI_INIT_HF;
- pe->abbrev = g_strdup(abbr);
+ pe->abbrev = g_strdup(abbr);
pe->text = g_strdup(text);
pe->group = group;
pe->severity = severity;
@@ -101,8 +101,6 @@ static int ProtoExpert__gc(lua_State* L) {
if (pe->ids.hf == -2) {
/* Only free unregistered and deregistered ProtoExpert */
- g_free((gchar *)pe->abbrev);
- g_free((gchar *)pe->text);
g_free(pe);
}