diff options
author | Colin Ian King <[email protected]> | 2014-07-03 00:35:09 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2014-07-07 13:20:30 +0200 |
commit | ed4b197ddd4d7aa6623e7777ea326c67c3a6b8ed (patch) | |
tree | d714f53edff0112ae0e7f9a81cec30d502024aa6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | dd43de20f540179863d9d7c3188b6a6cfde9a731 (diff) |
ACPI / EC: Free saved_ec on error exit path
Smatch detected two memory leaks on saved_ec:
drivers/acpi/ec.c:1070 acpi_ec_ecdt_probe() warn: possible
memory leak of 'saved_ec'
drivers/acpi/ec.c:1109 acpi_ec_ecdt_probe() warn: possible
memory leak of 'saved_ec'
Free saved_ec on these two error exit paths to stop the memory
leak. Note that saved_ec maybe null, but kfree on null is allowed.
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Lan Tianyu <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions