diff options
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r-- | tools/perf/util/machine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 6a8d03c3d9b7..270f3223c6df 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -172,6 +172,9 @@ void machine__exit(struct machine *machine) | |||
172 | { | 172 | { |
173 | int i; | 173 | int i; |
174 | 174 | ||
175 | if (machine == NULL) | ||
176 | return; | ||
177 | |||
175 | machine__destroy_kernel_maps(machine); | 178 | machine__destroy_kernel_maps(machine); |
176 | map_groups__exit(&machine->kmaps); | 179 | map_groups__exit(&machine->kmaps); |
177 | dsos__exit(&machine->dsos); | 180 | dsos__exit(&machine->dsos); |