diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 16:40:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 16:40:20 +0000 |
commit | 92abcea04fa67e69bb5951049e945356ceae4670 (patch) | |
tree | b147dbe79dcc74c729f61a9262dd638d68637bc5 /src/lua/lua_util.c | |
parent | e6c42dc71175916c01074f5605afc5b3257fe725 (diff) | |
download | rspamd-92abcea04fa67e69bb5951049e945356ceae4670.tar.gz rspamd-92abcea04fa67e69bb5951049e945356ceae4670.zip |
[Project] Support mempool flags
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index ef9c3105e..b71339402 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1386,7 +1386,7 @@ lua_util_parse_html (lua_State *L) } if (start != NULL) { - pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); + pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL, 0); hc = rspamd_mempool_alloc0 (pool, sizeof (*hc)); in = g_byte_array_sized_new (len); g_byte_array_append (in, start, len); @@ -1456,7 +1456,8 @@ lua_util_parse_addr (lua_State *L) } } else { - pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "lua util"); + pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), + "lua util", 0); own_pool = TRUE; } @@ -1660,7 +1661,8 @@ lua_util_parse_mail_address (lua_State *L) } } else { - pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "lua util"); + pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), + "lua util", 0); own_pool = TRUE; } |