summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2022-11-22 10:37:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-20 16:20:30 +0300
commit0d150f967e8410e1e6712484543eec709356a65d (patch)
treeb708f1fbab1dc8ab26e6a4096603b8173c2e54d2 /tools/perf/scripts/python/export-to-sqlite.py
parent6977b1a5d67097eaa4d02b0c126c04cc6e8917c0 (diff)
downloadlinux-0d150f967e8410e1e6712484543eec709356a65d.tar.xz
driver core: location: Free struct acpi_pld_info *pld before return false
struct acpi_pld_info *pld should be freed before the return of allocation failure, to prevent memory leak, add the ACPI_FREE() to fix it. Fixes: bc443c31def5 ("driver core: location: Check for allocations failure") Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/1669102648-11517-1-git-send-email-guohanjun@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions