From f6d8cb00f91907d13d9a8f7aed49f8525dcef399 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 10 Sep 2020 14:07:28 +0100 Subject: [Minor] Deinit libs in client --- src/client/rspamc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 99bff19c8..c2dd3a5d2 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -1933,7 +1933,7 @@ main (gint argc, gchar **argv, gchar **env) } } - 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; @@ -2087,6 +2087,8 @@ main (gint argc, gchar **argv, gchar **env) 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; } -- cgit v1.2.3