mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
perf kvm: Fix memory leak in cmd_kvm()
Set the thread private data destructor. Signed-off-by: Michalis Niarchos <michael.niarchos@gmail.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
8564e01efb
commit
65785fb650
|
|
@ -2149,6 +2149,8 @@ int cmd_kvm(int argc, const char **argv)
|
|||
if (!argc)
|
||||
usage_with_options(kvm_usage, kvm_options);
|
||||
|
||||
thread__set_priv_destructor(free);
|
||||
|
||||
if (!perf_host)
|
||||
perf_guest = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user