aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/init_wslua.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/init_wslua.c')
-rw-r--r--epan/wslua/init_wslua.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index c2f81a9a06..afee46d91c 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -486,6 +486,13 @@ int wslua_init(register_cb cb, gpointer client_data) {
return 0;
}
+int wslua_cleanup(void) {
+ /* cleanup lua */
+ lua_close(L);
+ L = NULL;
+ return 0;
+}
+
lua_State* wslua_state(void) { return L; }
/*