perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Apr 2023 13:23:35 +0000 (10:23 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:39 +0000 (11:53 +0200)
commitd592598f4775831cabfd665f22da736caabfac4f
tree6b965498dbda7dc8e6ad258710bbe94795f70950
parent36a840a86278962e2f121b9a9ac42936ebe301bf
perf pmu: zfree() expects a pointer to a pointer to zero it after freeing its contents

[ Upstream commit 57f14b5ae1a97537f2abd2828ee7212cada7036e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/pmu.c