Merge pull request #9434 from jmguzik/rootless-linux-bug

[NO TESTS NEEDED] leak fix in rootless_linux.c fcn can_use_shortcut
This commit is contained in:
OpenShift Merge Robot
2021-02-19 10:45:24 -05:00
committed by GitHub

View File

@ -196,7 +196,11 @@ can_use_shortcut ()
return false;
if (strstr (argv[0], "podman") == NULL)
return false;
{
free (argv[0]);
free (argv);
return false;
}
for (argc = 0; argv[argc]; argc++)
{