aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorTaeung Song <[email protected]>2017-02-01 21:34:07 +0900
committerArnaldo Carvalho de Melo <[email protected]>2017-02-08 09:41:12 -0300
commit360e071b1822d40357e371357f24f6ec43f0a080 (patch)
tree0e02ef69ade6c9e2ebe082ef05afdf25ea6b5736 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent506fde11a35f39e1b44478339c41e94dfd278aa2 (diff)
perf tools: Use zfree() to avoid keeping dangling pointers
The cases changed in this patch are for when we free but keep the pointer to the freed area, which is not always a good idea. Be more defensive and zero the pointer to avoid possible use after free bugs to take more time to be detected. Signed-off-by: Taeung Song <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ rewrote commit log ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions