diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
commit | ad837700b86153be3587672124ee663c964f0f15 (patch) | |
tree | 7ec6e8fbe539a169d501a3d1767644b68fab2dab /src/plugins/spf.c | |
parent | baeb17562f47dc31610c0f65079c45a7e6ad44bb (diff) | |
download | rspamd-ad837700b86153be3587672124ee663c964f0f15.tar.gz rspamd-ad837700b86153be3587672124ee663c964f0f15.zip |
Refactor memory pool naming.
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 2a58021d3..239e58d3b 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -55,7 +55,7 @@ struct spf_ctx { const gchar *symbol_softfail; const gchar *symbol_allow; - memory_pool_t *spf_pool; + rspamd_mempool_t *spf_pool; radix_tree_t *whitelist_ip; rspamd_lru_hash_t *spf_hash; }; @@ -83,7 +83,7 @@ spf_module_init (struct config_file *cfg, struct module_ctx **ctx) { spf_module_ctx = g_malloc (sizeof (struct spf_ctx)); - spf_module_ctx->spf_pool = memory_pool_new (memory_pool_get_size ()); + spf_module_ctx->spf_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); *ctx = (struct module_ctx *)spf_module_ctx; @@ -151,9 +151,9 @@ spf_module_config (struct config_file *cfg) gint spf_module_reconfig (struct config_file *cfg) { - memory_pool_delete (spf_module_ctx->spf_pool); + rspamd_mempool_delete (spf_module_ctx->spf_pool); radix_tree_free (spf_module_ctx->whitelist_ip); - spf_module_ctx->spf_pool = memory_pool_new (memory_pool_get_size ()); + spf_module_ctx->spf_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); return spf_module_config (cfg); } |