fix(lua): disable custom allocation for Lua, it is crashing

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-11-11 18:20:52 -08:00
parent 7d49df3985
commit cc7b5b7e50

View file

@ -71,7 +71,9 @@ struct leanlua_state::imp {
std::mutex m_mutex;
imp() {
#ifdef LEAN_USE_LUA_NEWSTATE
// TODO(Leo) investigate why TCMALLOC + lua_realloc do not work together
// #ifdef LEAN_USE_LUA_NEWSTATE
#if 0
m_state = lua_newstate(lua_realloc, nullptr);
#else
m_state = luaL_newstate();