]> source.dussan.org Git - rspamd.git/commitdiff
Do not destroy memory pools in lua automatically.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Nov 2013 11:26:11 +0000 (11:26 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Nov 2013 11:26:11 +0000 (11:26 +0000)
src/lua/lua_mempool.c

index 7b95d6c0cf5fd5e5fb1f6fd1c4d9edea8844822e..8eb0af5dc8cb857286b4e453ff49be203429087b 100644 (file)
@@ -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}
 };