aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r--epan/wslua/wslua.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h
index fb067a2f38..8e074eb00c 100644
--- a/epan/wslua/wslua.h
+++ b/epan/wslua/wslua.h
@@ -618,7 +618,8 @@ extern int wslua_set__index(lua_State *L);
} else { \
return luaL_error(L, "%s's attribute `%s' must be a string or nil", #C , #field ); \
} \
- wtap_optionblock_set_option_string(obj->member, option, s); \
+ wtap_optionblock_set_option_string(obj->member, option, s, strlen(s)); \
+ g_free(s); \
return 0; \
} \
/* silly little trick so we can add a semicolon after this macro */ \