diff options
author | Jakub Guzik <jakubmguzik@gmail.com> | 2021-02-19 10:33:52 +0100 |
---|---|---|
committer | Jakub Guzik <jakubmguzik@gmail.com> | 2021-02-19 11:20:35 +0100 |
commit | e1ad50654c5e53f63bbf8651c47bb513a5e0c5d3 (patch) | |
tree | b1360ae97319806a17596cbec7db0c50ff802b87 /pkg | |
parent | 1c6c94d44a207e42eddf9b863c20e5004021f3af (diff) | |
download | podman-e1ad50654c5e53f63bbf8651c47bb513a5e0c5d3.tar.gz podman-e1ad50654c5e53f63bbf8651c47bb513a5e0c5d3.tar.bz2 podman-e1ad50654c5e53f63bbf8651c47bb513a5e0c5d3.zip |
leak fix in rootless_linux.c fcn can_use_shortcut
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/rootless/rootless_linux.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index 2e1fddc48..d588d848b 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -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++) { |