perf trace: Use zfree() to reduce chances of use after free
[ Upstream commit 9997d5dd ] Do defensive programming by using zfree() to initialize freed pointers to NULL, so that eventual use after free result in a NULL pointer deref instead of more subtle behaviour. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Stable-dep-of: 7962ef13 ("perf trace: Really free the evsel->priv area") Signed-off-by: Sasha Levin <sashal@kernel.org>
parent
414cf7a2
Please register or sign in to comment