diff options
author | 2023-04-12 09:50:08 -0300 | |
---|---|---|
committer | 2023-04-12 10:03:37 -0300 | |
commit | cdf13c0918c9b1b233d6db690fc4c06afbc29e57 (patch) | |
tree | 69ca3b661930913dc36e264523dbea6cf3464928 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf pmu: Use zfree() to reduce chances of use after free (diff) | |
download | wireguard-linux-cdf13c0918c9b1b233d6db690fc4c06afbc29e57.tar.xz wireguard-linux-cdf13c0918c9b1b233d6db690fc4c06afbc29e57.zip |
perf evsel: 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 remove one NULL test before free(), as it accepts a NULL arg and we
get one line shaved not doing it explicitely.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions