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
commit c12576501c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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++)
{