summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTaeung Song <treeze.taeung@gmail.com>2016-06-07 12:26:11 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-06-07 16:58:55 +0300
commit25d8f48f78f37dd6af08bd11212ab3d53a4c8cc6 (patch)
tree8a1a395f662939bc8f0079828d7e938623923777 /tools/perf/scripts/python/stackcollapse.py
parentc58c49ac630979a285d574b3f72a528209515fb3 (diff)
downloadlinux-25d8f48f78f37dd6af08bd11212ab3d53a4c8cc6.tar.xz
perf config: Constructor should free its allocated memory when failing
Because of die() at perf_parse_file() a config set was freed in collect_config(), if failed. But it is natural to free a config set after collect_config() is done when some problems happened. So, in case of failure, lastly free a config set at perf_config_set__new() instead of freeing the config set in collect_config(). Signed-off-by: Taeung Song <treeze.taeung@gmail.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1465291577-20973-2-git-send-email-treeze.taeung@gmail.com 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