mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-06 04:28:28 +02:00
daemon: Fix memory leak when reporting usage error
This commit is contained in:
parent
a2bf0200f2
commit
8f870fc3d2
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue