aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2020-05-12 17:03:18 -0700
committerArnaldo Carvalho de Melo <[email protected]>2020-05-28 10:03:26 -0300
commit6365757894d5e7ada8a1d074a21fdaf2973dd5ae (patch)
tree128ce8d355698657b93981b76a685d2925884837 /tools/perf/scripts/python/intel-pt-events.py
parent39548e50e689edb76761a89e25ced7854795133d (diff)
perf expr: Fix memory leaks in metric bison
Add a destructor for strings to reclaim memory in the event of errors. Free the ID given for a lookup, it was previously strdup-ed in the lex code. Signed-off-by: Ian Rogers <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions