mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
perf kvm: Fix a memory leak in the usage string
The first element of the kvm_usage string is allocated dynamically by parse_options_subcommand() if it's NULL. Callers should free it after use. Tested-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
5169bd7647
commit
ab42c7b943
1 changed files with 8 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue