aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto_field.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-08-14 13:46:01 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2015-08-14 11:47:25 +0000
commit7833b93c66709f3dedafb5c0a7f27e2a0fd9e1e7 (patch)
tree62df914140dbccbf45026fc95db93a21af42ccff /epan/wslua/wslua_proto_field.c
parent12ff69d44e9864f38103ee11414ef70fa9765604 (diff)
Free all hfi->strings in free_deregister_field
Change-Id: I6fe78266a2e881fa80e1e3a3423b685d3c1764de Reviewed-on: https://code.wireshark.org/review/10029 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/wslua/wslua_proto_field.c')
-rw-r--r--epan/wslua/wslua_proto_field.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/epan/wslua/wslua_proto_field.c b/epan/wslua/wslua_proto_field.c
index f6d4421c99..d10089fd25 100644
--- a/epan/wslua/wslua_proto_field.c
+++ b/epan/wslua/wslua_proto_field.c
@@ -918,22 +918,6 @@ static int ProtoField__gc(lua_State* L) {
if (f->hfid == -2) {
/* Only free unregistered and deregistered ProtoField */
- if (f->vs) {
- if (f->type == FT_UINT64 || f->type == FT_INT64) {
- val64_string *vs64 = (val64_string *)f->vs;
- while (vs64->strptr) {
- g_free((gchar *)vs64->strptr);
- vs64++;
- }
- } else if (f->type != FT_BOOLEAN) { /* Other Integer types */
- value_string *vs = (value_string *)f->vs;
- while (vs->strptr) {
- g_free((gchar *)vs->strptr);
- vs++;
- }
- }
- g_free((void *)f->vs);
- }
g_free(f);
}