diff options
author | 2019-12-28 19:54:55 +0800 | |
---|---|---|
committer | 2020-01-08 17:07:20 +0100 | |
commit | f6d061d617124abbd55396a3bc37b9bf7d33233c (patch) | |
tree | b375c369ae0f93abefedc739cea6e55b62dfb02b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | export.h: reduce __ksymtab_strings string duplication by using "MS" section flags (diff) | |
download | linux-dev-f6d061d617124abbd55396a3bc37b9bf7d33233c.tar.xz linux-dev-f6d061d617124abbd55396a3bc37b9bf7d33233c.zip |
kernel/module: Fix memleak in module_add_modinfo_attrs()
In module_add_modinfo_attrs() if sysfs_create_file() fails
on the first iteration of the loop (so i = 0), we forget to
free the modinfo_attrs.
Fixes: bc6f2a757d52 ("kernel/module: Fix mem leak in module_add_modinfo_attrs")
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions