summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2023-04-12 09:50:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-04-12 10:08:30 -0300
commitc77ceb2eb03eefd92e6b84a509ecec1db8d97858 (patch)
tree1ab8316a7b1698b0478942bfb94fe2f17c419d0f /tools/perf/scripts/python/intel-pt-events.py
parent25feb605fe3b2674142d084379e0737a99945aba (diff)
downloadlinux-c77ceb2eb03eefd92e6b84a509ecec1db8d97858.tar.gz
linux-c77ceb2eb03eefd92e6b84a509ecec1db8d97858.tar.bz2
linux-c77ceb2eb03eefd92e6b84a509ecec1db8d97858.zip
perf annotate: Use zfree() to reduce chances of use after free
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. Also include the missing linux/zalloc.h header directive. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions