From: Vsevolod Stakhov Date: Wed, 20 Nov 2013 11:26:11 +0000 (+0000) Subject: Do not destroy memory pools in lua automatically. X-Git-Tag: 0.6.0~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7de181506c39b985d12023f3a398436314ebcbc2;p=rspamd.git Do not destroy memory pools in lua automatically. --- diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 7b95d6c0c..8eb0af5dc 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -43,7 +43,7 @@ static const struct luaL_reg mempoollib_m[] = { LUA_INTERFACE_DEF (mempool, memory_pool_get_size), LUA_INTERFACE_DEF (mempool, memory_pool_set_variable), LUA_INTERFACE_DEF (mempool, memory_pool_get_variable), - {"__gc", lua_mempool_memory_pool_delete}, + {"destroy", lua_mempool_memory_pool_delete}, {"__tostring", lua_class_tostring}, {NULL, NULL} };