mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 17:41:09 +00:00
perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents
[ Upstream commit57f14b5ae1
] An audit showed just this one problem with zfree(), fix it. Fixes:9fbc61f832
("perf pmu: Add support for PMU capabilities") Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e685e2e2bd
commit
4f128167e6
1 changed files with 1 additions and 1 deletions
|
@ -1858,7 +1858,7 @@ static int perf_pmu__new_caps(struct list_head *list, char *name, char *value)
|
|||
return 0;
|
||||
|
||||
free_name:
|
||||
zfree(caps->name);
|
||||
zfree(&caps->name);
|
||||
free_caps:
|
||||
free(caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue