commit bc2357b: [Minor] Fix use-after-free
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 8 13:35:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-08 14:34:03 +0100
URL: https://github.com/rspamd/rspamd/commit/bc2357b1df1462ba0e409ed2e1b1f6e7c39fcc8a (HEAD -> master)
[Minor] Fix use-after-free
---
src/rspamadm/rspamadm.c | 3 +--
1 file changed, 1 insertion(+), 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);
More information about the Commits
mailing list