Revert "tests: Fix GOptionContext leak in GSubprocess tests"

This reverts commit 52bab0254a.

It silently conflicted with another commit,
90ca3b4dd0, which was merged later than
it. I’ve kept commit 90ca3b because it also frees the GError; 52bab
doesn’t.

This is my failure to rebase and test old branches before merging them,
instead of assuming that the lack of automatically detected merge
conflicts actually means there are no merge conflicts.
This commit is contained in:
Philip Withnall 2018-12-19 14:54:18 +00:00
parent b709c6bde4
commit ccb3486543

View File

@ -209,14 +209,11 @@ main (int argc, char **argv)
if (!ret)
{
g_option_context_free (context);
g_printerr ("%s: %s\n", argv[0], error->message);
g_error_free (error);
return 1;
}
g_option_context_free (context);
if (argc < 2)
{
g_printerr ("MODE argument required\n");