worker->srv->pid = getpid ();
worker->ctx = event_init ();
- g_mime_init (0);
init_signals (&signals, sig_handler);
sigprocmask (SIG_UNBLOCK, &signals.sa_mask, NULL);
rspamd_main->cfg->mlock_statfile_pool);
event_init ();
+#ifdef GMIME_ENABLE_RFC2047_WORKAROUNDS
+ g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS);
+#else
g_mime_init (0);
+#endif
/* Init lua filters */
if (!rspamd_init_lua_filters (rspamd_main->cfg)) {
exit (EXIT_FAILURE);
}
-
/* Insert classifiers symbols */
(void)rspamd_config_insert_classify_symbols (rspamd_main->cfg);
g_free (rspamd_main->cfg);
g_free (rspamd_main);
+ g_mime_shutdown ();
+
#ifdef HAVE_OPENSSL
EVP_cleanup ();
ERR_free_strings ();
}
t ++;
}
+
+ radix_tree_destroy_compressed (tree);
}
void
g_thread_init (NULL);
#endif
+ g_mime_init (0);
memset (rspamd_main, 0, sizeof (struct rspamd_main));
rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ());
rspamd_main->cfg = (struct rspamd_config *)g_malloc (sizeof (struct rspamd_config));
g_test_run ();
+ g_mime_shutdown ();
+
return 0;
}