aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/rspamadm.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-29 12:38:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-29 12:38:35 +0100
commitc171c618363d848cf764cf6df1ec7f5efd48bf82 (patch)
tree550f12bda92302c5100301343ae5c2c2019c9530 /src/rspamadm/rspamadm.c
parent352e35b245ba850cbb39f0fc07777e727f99484a (diff)
downloadrspamd-c171c618363d848cf764cf6df1ec7f5efd48bf82.tar.gz
rspamd-c171c618363d848cf764cf6df1ec7f5efd48bf82.zip
Allocate and free memory with the same allocator.
Issue: #385
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r--src/rspamadm/rspamadm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c
index be35a8be2..80c180102 100644
--- a/src/rspamadm/rspamadm.c
+++ b/src/rspamadm/rspamadm.c
@@ -203,8 +203,8 @@ main (gint argc, gchar **argv, gchar **env)
rspamd_strcase_equal, g_free, g_free);
ottery_init (NULL);
process_quark = g_quark_from_static_string ("rspamadm");
- cfg = g_slice_alloc0 (sizeof (*cfg));
- rspamd_main = g_slice_alloc0 (sizeof (*rspamd_main));
+ cfg = g_malloc0 (sizeof (*cfg));
+ rspamd_main = g_malloc0 (sizeof (*rspamd_main));
rspamd_init_libs ();
rspamd_init_cfg (cfg, TRUE);
rspamd_main->cfg = cfg;