diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-04-12 09:50:08 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-04-12 10:08:30 -0300 |
commit | c77ceb2eb03eefd92e6b84a509ecec1db8d97858 (patch) | |
tree | 1ab8316a7b1698b0478942bfb94fe2f17c419d0f /tools/perf/scripts/python/intel-pt-events.py | |
parent | 25feb605fe3b2674142d084379e0737a99945aba (diff) | |
download | linux-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