diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-10 14:07:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-10 14:07:28 +0100 |
commit | f6d8cb00f91907d13d9a8f7aed49f8525dcef399 (patch) | |
tree | d36c29f4042f5b2eb0557cf9b6e95fdb6a17e575 /src/client | |
parent | a493c2ca1174571947d8e4c68f25e78d5422c80d (diff) | |
download | rspamd-f6d8cb00f91907d13d9a8f7aed49f8525dcef399.tar.gz rspamd-f6d8cb00f91907d13d9a8f7aed49f8525dcef399.zip |
[Minor] Deinit libs in client
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |