diff options
author | Xie XiuQi <xiexiuqi@huawei.com> | 2020-05-21 16:32:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 14:12:46 +0300 |
commit | 5c339f2c9a3e5e1289871ca682ba11a3e89c97a1 (patch) | |
tree | c45181852dadda85f810561ed3316ebab733af4d /drivers/mfd/ab8500-core.c | |
parent | c467ff965b02c6463736879b6c963afec6ddbe30 (diff) | |
download | linux-5c339f2c9a3e5e1289871ca682ba11a3e89c97a1.tar.xz |
perf util: Fix memory leak of prefix_if_not_in
[ Upstream commit 07e9a6f538cbeecaf5c55b6f2991416f873cdcbd ]
Need to free "str" before return when asprintf() failed to avoid memory
leak.
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Hongbo Yao <yaohongbo@huawei.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Li Bin <huawei.libin@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/20200521133218.30150-4-liwei391@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
0 files changed, 0 insertions, 0 deletions