diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h --- a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h +++ b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h @@ -33,7 +33,7 @@ ~Lua() { assert(m_lua_state); - luaL_openlibs(m_lua_state); + lua_close(m_lua_state); } llvm::Error Run(llvm::StringRef buffer);