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 09:54:32 -0300 |
commit | 9997d5dd177c52017fa0541bf236a4232c8148e6 (patch) | |
tree | c73666cc8d58e15cba5566b0896738f1ff7cced2 /tools/perf/scripts/python/stackcollapse.py | |
parent | 789eae7f203edc1301d7122ad9b3046e7c56937c (diff) | |
download | linux-9997d5dd177c52017fa0541bf236a4232c8148e6.tar.gz linux-9997d5dd177c52017fa0541bf236a4232c8148e6.tar.bz2 linux-9997d5dd177c52017fa0541bf236a4232c8148e6.zip |
perf trace: 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