Skip to content

Commit

Permalink
Merge pull request containers#9434 from jmguzik/rootless-linux-bug
Browse files Browse the repository at this point in the history
[NO TESTS NEEDED] leak fix in rootless_linux.c fcn can_use_shortcut
  • Loading branch information
openshift-merge-robot authored Feb 19, 2021
2 parents 6a9257a + e1ad506 commit c125765
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/rootless/rootless_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit c125765

Please sign in to comment.