From d47aab79f69ebed81181a11575031fd8d9cd10bb Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 19 Oct 2012 08:19:44 +0200 Subject: [PATCH] In realm permit or deny commands, fail when options are invalid. http://bugs.freedesktop.org/show_bug.cgi?id=56144 --- tools/realm-logins.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/realm-logins.c b/tools/realm-logins.c index 5af8f54..687826c 100644 --- a/tools/realm-logins.c +++ b/tools/realm-logins.c @@ -209,7 +209,9 @@ realm_permit_or_deny (gboolean permit, if (!g_option_context_parse (context, &argc, &argv, &error)) { g_printerr ("%s: %s\n", g_get_prgname (), error->message); g_error_free (error); - ret = 2; + g_free (realm_name); + g_option_context_free (context); + return 2; } if (arg_all) { -- 1.7.12.1