diff options
Diffstat (limited to 'epan/wslua/wslua_frame_info.c')
-rw-r--r-- | epan/wslua/wslua_frame_info.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/wslua/wslua_frame_info.c b/epan/wslua/wslua_frame_info.c index 0918505933..bca83fd96e 100644 --- a/epan/wslua/wslua_frame_info.c +++ b/epan/wslua/wslua_frame_info.c @@ -112,8 +112,7 @@ WSLUA_METHOD FrameInfo_read_data(lua_State* L) { /* free the struct we created, but not the phdr/buf it points to */ static int FrameInfo__gc(lua_State* L) { FrameInfo fi = toFrameInfo(L,1); - if (fi) - g_free(fi); + g_free(fi); return 0; } @@ -322,8 +321,7 @@ WSLUA_METHOD FrameInfoConst_write_data(lua_State* L) { /* free the struct we created, but not the wtap_pkthdr it points to */ static int FrameInfoConst__gc(lua_State* L) { FrameInfoConst fi = toFrameInfoConst(L,1); - if (fi) - g_free(fi); + g_free(fi); return 0; } |