aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/rspamadm.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-08 14:34:03 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-08 14:34:03 +0100
commitbc2357b1df1462ba0e409ed2e1b1f6e7c39fcc8a (patch)
treed21abde7cc516f227bc973a122b187181b71446e /src/rspamadm/rspamadm.c
parent79900965e4537122d9702b21075b4eacbd9b7492 (diff)
downloadrspamd-bc2357b1df1462ba0e409ed2e1b1f6e7c39fcc8a.tar.gz
rspamd-bc2357b1df1462ba0e409ed2e1b1f6e7c39fcc8a.zip
[Minor] Fix use-after-free
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r--src/rspamadm/rspamadm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c
index 2487207ef..661b468af 100644
--- a/src/rspamadm/rspamadm.c
+++ b/src/rspamadm/rspamadm.c
@@ -438,8 +438,6 @@ main (gint argc, gchar **argv, gchar **env)
exit (1);
}
- g_option_context_free (context);
-
/* Setup logger */
if (verbose) {
cfg->log_level = G_LOG_LEVEL_DEBUG;
@@ -614,6 +612,7 @@ main (gint argc, gchar **argv, gchar **env)
ev_break (rspamd_main->event_loop, EVBREAK_ALL);
end:
+ g_option_context_free (context);
rspamd_dns_resolver_deinit (resolver);
REF_RELEASE (rspamd_main->cfg);
rspamd_http_context_free (rspamd_main->http_ctx);