diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-20 11:26:11 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-20 11:26:11 +0000 |
commit | 7de181506c39b985d12023f3a398436314ebcbc2 (patch) | |
tree | 9a0c68f6c78c0988254e4fea659028167afd827a | |
parent | 2dc4188d56c9fb28ad784def7c9ef188bbd0b7a3 (diff) | |
download | rspamd-7de181506c39b985d12023f3a398436314ebcbc2.tar.gz rspamd-7de181506c39b985d12023f3a398436314ebcbc2.zip |
Do not destroy memory pools in lua automatically.
-rw-r--r-- | src/lua/lua_mempool.c | 2 |
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} }; |