diff options
Diffstat (limited to 'src/rspamadm/control.c')
-rw-r--r-- | src/rspamadm/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 2f73d09ca..e605ecb0a 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -185,9 +185,12 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd) if (!g_option_context_parse (context, &argc, &argv, &error)) { rspamd_fprintf (stderr, "option parsing failed: %s\n", error->message); g_error_free (error); + g_option_context_free (context); exit (1); } + g_option_context_free (context); + if (argc <= 1) { rspamd_fprintf (stderr, "command required\n"); exit (1); |