From 8f870fc3d2ec879bb59b6146c1cd109af5a5d50f Mon Sep 17 00:00:00 2001 From: Ula Shipman Date: Tue, 27 May 2025 19:20:53 -0700 Subject: [PATCH] daemon: Fix memory leak when reporting usage error --- src/up-main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/up-main.c b/src/up-main.c index f677cb5..6bdb299 100644 --- a/src/up-main.c +++ b/src/up-main.c @@ -210,6 +210,7 @@ main (gint argc, gchar **argv) if (!g_option_context_parse (context, &argc, &argv, &error)) { g_warning ("Failed to parse command-line options: %s", error->message); g_error_free (error); + g_option_context_free (context); return 1; } g_option_context_free (context);