aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-20 11:26:11 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-20 11:26:11 +0000
commit7de181506c39b985d12023f3a398436314ebcbc2 (patch)
tree9a0c68f6c78c0988254e4fea659028167afd827a
parent2dc4188d56c9fb28ad784def7c9ef188bbd0b7a3 (diff)
downloadrspamd-7de181506c39b985d12023f3a398436314ebcbc2.tar.gz
rspamd-7de181506c39b985d12023f3a398436314ebcbc2.zip
Do not destroy memory pools in lua automatically.
-rw-r--r--src/lua/lua_mempool.c2
1 files changed, 1 insertions, 1 deletions
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}
};