Commit 52bab025 authored by Tomasz Miąsko's avatar Tomasz Miąsko

tests: Fix GOptionContext leak in GSubprocess tests

parent 9347c763
......@@ -205,10 +205,13 @@ main (int argc, char **argv)
g_option_context_add_main_entries (context, options, NULL);
if (!g_option_context_parse (context, &argc, &argv, &error))
{
g_option_context_free (context);
g_printerr ("%s: %s\n", argv[0], error->message);
return 1;
}
g_option_context_free (context);
if (argc < 2)
{
g_printerr ("MODE argument required\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment