aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-03-01 23:46:20 +0000
committerArnaldo Carvalho de Melo <[email protected]>2016-03-03 11:10:37 -0300
commit979ac257b00c53aacec3eacf86142e8c00bee889 (patch)
treef640a1f3e9d0a51c56bec2f79bd684fad86e4ebb /tools/perf/scripts/python/stackcollapse.py
parent676787939ef8ccfcf8039104f766ebe5ebe23924 (diff)
perf script: Fix double free on command_line
The 'command_line' variable is free'd twice if db_export__branch_types() fails. To avoid this, defer the free'ing of 'command_line' to after this call so that the error return path will just free 'command_line' once. Signed-off-by: Colin Ian King <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: He Kuang <[email protected]> Cc: Javi Merino <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions