diff options
author | 2019-08-16 00:08:27 -0500 | |
---|---|---|
committer | 2019-09-02 23:17:22 +0200 | |
commit | 03d1571d9513369c17e6848476763ebbd10ec2cb (patch) | |
tree | 296fde035b930983a1e68cee556d6dfd30e16f4c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HMAT: Skip publishing target info for nodes with no online memory (diff) | |
download | linux-rng-03d1571d9513369c17e6848476763ebbd10ec2cb.tar.xz linux-rng-03d1571d9513369c17e6848476763ebbd10ec2cb.zip |
ACPI: custom_method: fix memory leaks
In cm_write(), 'buf' is allocated through kzalloc(). In the following
execution, if an error occurs, 'buf' is not deallocated, leading to memory
leaks. To fix this issue, free 'buf' before returning the error.
Fixes: 526b4af47f44 ("ACPI: Split out custom_method functionality into an own driver")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions