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:12:55 -0300 |
commit | e413f9f13f6a8a591af0ac39ef50af02b42a0df8 (patch) | |
tree | d4cfaaaa8487f91f30e3572a2e6164bdf0899074 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 2bfc8134f95852bd8b0190641c2d2b059cb1c8cc (diff) | |
download | linux-e413f9f13f6a8a591af0ac39ef50af02b42a0df8.tar.gz linux-e413f9f13f6a8a591af0ac39ef50af02b42a0df8.tar.bz2 linux-e413f9f13f6a8a591af0ac39ef50af02b42a0df8.zip |
perf genelf: 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.
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