diff options
Diffstat (limited to 'epan/wslua/wslua_file.c')
-rw-r--r-- | epan/wslua/wslua_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/wslua/wslua_file.c b/epan/wslua/wslua_file.c index cc11d07a1c..79bf4f7a3d 100644 --- a/epan/wslua/wslua_file.c +++ b/epan/wslua/wslua_file.c @@ -474,8 +474,7 @@ WSLUA_METAMETHOD File__tostring(lua_State* L) { /* We free the struct we malloc'ed, but not the FILE_T/dumper in it of course */ static int File__gc(lua_State* L) { File f = toFile(L,1); - if (f) - g_free(f); + g_free(f); return 0; } |