}
}
- rspamd_init_libs ();
+ struct rspamd_external_libs_ctx *libs = rspamd_init_libs ();
event_loop = ev_loop_new (EVBACKEND_ALL);
struct rspamd_http_context_cfg http_config;
g_pattern_spec_free (exclude_compiled[i]);
}
+ rspamd_deinit_libs (libs);
+
/* Mix retcode (return from Rspamd side) and ret (return from subprocess) */
return ret | retcode;
}
}
}
else {
- cached = rspamd_mempool_alloc (task->task_pool, sizeof (*cached));
+ cached = rspamd_mempool_alloc0 (task->task_pool, sizeof (*cached));
additional_length = fuzzy_cmd_extension_length (task, rule);
cached->additional_length = additional_length;