diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-30 14:03:01 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-30 14:03:01 +0100 |
commit | 43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e (patch) | |
tree | ec2a655a65f4dcc43a2359db69ad61b4a3bd528d /src/rspamadm/rspamadm.c | |
parent | a7543072058055ff88698383967cf83f58fa663d (diff) | |
download | rspamd-43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e.tar.gz rspamd-43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e.zip |
[Minor] Log should not depend on config
When config is being closed, some destructors could be called, and that dtors could write into log. Hence, it is better to terminate config and only then close log. And log should not refer disposed config
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r-- | src/rspamadm/rspamadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 9eeccb545..d5a656a51 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -498,8 +498,8 @@ main (gint argc, gchar **argv, gchar **env) cmd->run (0, NULL, cmd); } - rspamd_log_close (rspamd_main->logger); REF_RELEASE (rspamd_main->cfg); + rspamd_log_close (rspamd_main->logger, TRUE); g_free (rspamd_main); g_ptr_array_free (all_commands, TRUE); |