Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents

An audit showed just this one problem with zfree(), fix it.

Fixes: 9fbc61f832ebf432 ("perf pmu: Add support for PMU capabilities")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -1
+1 -1
tools/perf/util/pmu.c
··· 1852 1852 return 0; 1853 1853 1854 1854 free_name: 1855 - zfree(caps->name); 1855 + zfree(&caps->name); 1856 1856 free_caps: 1857 1857 free(caps); 1858 1858