diff options
| author | Andy Lutomirski <[email protected]> | 2015-11-25 08:24:42 -0800 |
|---|---|---|
| committer | Darren Hart (VMware) <[email protected]> | 2017-06-06 10:15:18 -0700 |
| commit | a1c31bcd5772b13b39b028126fa9de918c36cf26 (patch) | |
| tree | d00d06de011ba692119731a7cf68e7edd4bf7065 /tools/perf/scripts/python | |
| parent | 844af950da946cfab227a04b950614da04cb6275 (diff) | |
platform/x86: wmi: Fix error handling when creating devices
We have two memory leaks. If guid_already_parsed returned true, we leak
the wmi_block. If wmi_create_device failed, we leak the device.
Simplify the logic and fix both of them.
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Mario Limonciello <[email protected]>
Cc: Pali Rohár <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Darren Hart (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions