Deallocate TLS context when closing the Lua state.

This commit is contained in:
Alexey Kopytov
2017-01-30 08:54:50 +03:00
parent 6eb5ede654
commit 83b0617ee9

View File

@ -779,6 +779,8 @@ int sb_lua_close_state(lua_State *state)
db_driver = NULL;
}
xfree(tls_lua_ctxt);
return 0;
}