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:02:26 -0300 |
commit | efe98a7a39777ce266142159f303fb52c3b817c0 (patch) | |
tree | 6437f90f6114102162acf467c6b2bbdc2f11a0a9 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9fbde6c8002bce61acd0c2187cc41c43a7c99968 (diff) | |
download | linux-efe98a7a39777ce266142159f303fb52c3b817c0.tar.gz linux-efe98a7a39777ce266142159f303fb52c3b817c0.tar.bz2 linux-efe98a7a39777ce266142159f303fb52c3b817c0.zip |
perf pmu: 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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions