daemon: Fix memory leak when reporting usage error

This commit is contained in:
Ula Shipman 2025-05-27 19:20:53 -07:00
parent a2bf0200f2
commit 8f870fc3d2

View file

@ -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);