diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-27 17:31:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-27 17:36:29 +0100 |
commit | b05c7c9edd197eea8aa11abcc416ea1463748f98 (patch) | |
tree | 06c165d661c28a1246cd23a3752bd172787701d7 /src/plugins | |
parent | bbdc006ee99784d31d4b1df3290f1a63fd4086e5 (diff) | |
download | rspamd-b05c7c9edd197eea8aa11abcc416ea1463748f98.tar.gz rspamd-b05c7c9edd197eea8aa11abcc416ea1463748f98.zip |
Add tags to rspamd_mempool.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/chartable.c | 5 | ||||
-rw-r--r-- | src/plugins/dkim_check.c | 6 | ||||
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 | ||||
-rw-r--r-- | src/plugins/regexp.c | 6 | ||||
-rw-r--r-- | src/plugins/spf.c | 6 | ||||
-rw-r--r-- | src/plugins/surbl.c | 6 |
6 files changed, 12 insertions, 23 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 1cb1c7ed7..2cd12b68d 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -67,8 +67,7 @@ chartable_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) { chartable_module_ctx = g_malloc (sizeof (struct chartable_ctx)); - chartable_module_ctx->chartable_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + chartable_module_ctx->chartable_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); *ctx = (struct module_ctx *)chartable_module_ctx; @@ -119,7 +118,7 @@ gint chartable_module_reconfig (struct rspamd_config *cfg) { rspamd_mempool_delete (chartable_module_ctx->chartable_pool); - chartable_module_ctx->chartable_pool = rspamd_mempool_new (1024); + chartable_module_ctx->chartable_pool = rspamd_mempool_new (1024, NULL); return chartable_module_config (cfg); } diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 50644cb28..2fa5610f9 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -100,8 +100,7 @@ dkim_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) { dkim_module_ctx = g_malloc0 (sizeof (struct dkim_ctx)); - dkim_module_ctx->dkim_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + dkim_module_ctx->dkim_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); *ctx = (struct module_ctx *)dkim_module_ctx; @@ -278,8 +277,7 @@ dkim_module_reconfig (struct rspamd_config *cfg) memset (dkim_module_ctx, 0, sizeof (*dkim_module_ctx)); dkim_module_ctx->ctx = saved_ctx; - dkim_module_ctx->dkim_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + dkim_module_ctx->dkim_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); return dkim_module_config (cfg); } diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 7d240fcec..4e969bfd9 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -408,8 +408,7 @@ fuzzy_check_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) { fuzzy_module_ctx = g_malloc0 (sizeof (struct fuzzy_ctx)); - fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); fuzzy_module_ctx->cfg = cfg; *ctx = (struct module_ctx *)fuzzy_module_ctx; @@ -519,8 +518,7 @@ fuzzy_check_module_reconfig (struct rspamd_config *cfg) rspamd_mempool_delete (fuzzy_module_ctx->fuzzy_pool); memset (fuzzy_module_ctx, 0, sizeof (*fuzzy_module_ctx)); fuzzy_module_ctx->ctx = saved_ctx; - fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + fuzzy_module_ctx->fuzzy_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); fuzzy_module_ctx->cfg = cfg; return fuzzy_check_module_config (cfg); diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 489a64364..c122004ae 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -98,8 +98,7 @@ regexp_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) { regexp_module_ctx = g_malloc (sizeof (struct regexp_ctx)); - regexp_module_ctx->regexp_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + regexp_module_ctx->regexp_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); *ctx = (struct module_ctx *)regexp_module_ctx; @@ -184,8 +183,7 @@ regexp_module_reconfig (struct rspamd_config *cfg) rspamd_mempool_delete (regexp_module_ctx->regexp_pool); memset (regexp_module_ctx, 0, sizeof (*regexp_module_ctx)); regexp_module_ctx->ctx = saved_ctx; - regexp_module_ctx->regexp_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + regexp_module_ctx->regexp_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); return regexp_module_config (cfg); } diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 51673bcba..eb50ab2b9 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -92,8 +92,7 @@ spf_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) { spf_module_ctx = g_malloc (sizeof (struct spf_ctx)); - spf_module_ctx->spf_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + spf_module_ctx->spf_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); *ctx = (struct module_ctx *)spf_module_ctx; @@ -208,8 +207,7 @@ spf_module_reconfig (struct rspamd_config *cfg) radix_destroy_compressed (spf_module_ctx->whitelist_ip); memset (spf_module_ctx, 0, sizeof (*spf_module_ctx)); spf_module_ctx->ctx = saved_ctx; - spf_module_ctx->spf_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + spf_module_ctx->spf_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); return spf_module_config (cfg); } diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 5a4b0a86d..062fb8c0f 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -276,8 +276,7 @@ surbl_module_init (struct rspamd_config *cfg, struct module_ctx **ctx) surbl_module_ctx->use_redirector = 0; surbl_module_ctx->suffixes = NULL; - surbl_module_ctx->surbl_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + surbl_module_ctx->surbl_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); surbl_module_ctx->tld2_file = NULL; surbl_module_ctx->whitelist_file = NULL; @@ -622,8 +621,7 @@ surbl_module_reconfig (struct rspamd_config *cfg) /* Reinit module */ surbl_module_ctx->use_redirector = 0; surbl_module_ctx->suffixes = NULL; - surbl_module_ctx->surbl_pool = rspamd_mempool_new ( - rspamd_mempool_suggest_size ()); + surbl_module_ctx->surbl_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); surbl_module_ctx->tld2_file = NULL; surbl_module_ctx->whitelist_file = NULL; |