linux-xiaomi-chiron/tools/perf/util
Namhyung Kim 50a2740b83 perf header: Fix possible memory leaks in process_group_desc()
After processing all group descriptors or encountering an error, it
frees all descriptors.  However, current logic can leak memory since it
might not traverse all descriptors.

Note that the 'i' can have different value than nr_groups when an error
occurred and it's safe to call free(desc[i].name) for every desc since
we already make it NULL when it's reused for group names.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1384741244-7271-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-11-19 10:34:05 -03:00
..
include
scripting-engines
abspath.c
alias.c
annotate.c
annotate.h
bitmap.c
build-id.c
build-id.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
cache.h
callchain.c
callchain.h
cgroup.c
cgroup.h
color.c
color.h
comm.c
comm.h
config.c
cpumap.c
cpumap.h
ctype.c
data.c
data.h
debug.c
debug.h
dso.c
dso.h
dwarf-aux.c
dwarf-aux.h
environment.c
event.c perf tools: Synthesize anon MMAP records again 2013-11-14 16:00:01 -03:00
event.h perf record: Synthesize non-exec MMAP records when --data used 2013-11-11 15:56:39 -03:00
evlist.c perf record: Add an option to force per-cpu mmaps 2013-11-14 16:10:27 -03:00
evlist.h perf target: Shorten perf_target__ to target__ 2013-11-12 16:51:03 -03:00
evsel.c perf record: Add an option to force per-cpu mmaps 2013-11-14 16:10:27 -03:00
evsel.h perf evsel: Introduce perf_evsel__prev() method 2013-11-14 16:00:16 -03:00
exec_cmd.c
exec_cmd.h
fs.c
fs.h
generate-cmdlist.sh
header.c perf header: Fix possible memory leaks in process_group_desc() 2013-11-19 10:34:05 -03:00
header.h
help.c
help.h
hist.c
hist.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
hweight.c
intlist.c
intlist.h
levenshtein.c
levenshtein.h
machine.c perf symbols: Limit max callchain using max_stack on DWARF unwinding too 2013-11-14 16:00:23 -03:00
machine.h perf target: Shorten perf_target__ to target__ 2013-11-12 16:51:03 -03:00
map.c
map.h
pager.c
parse-events.c perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
parse-events.h
parse-events.l
parse-events.y
parse-options.c
parse-options.h
path.c
PERF-VERSION-GEN perf tools: Fix version when building out of tree 2013-11-07 10:40:47 -03:00
perf_regs.h
pmu.c
pmu.h
pmu.l
pmu.y
probe-event.c
probe-event.h
probe-finder.c perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
probe-finder.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
pstack.c
pstack.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
python-ext-sources
python.c
quote.c
quote.h
rblist.c
rblist.h
record.c
run-command.c
run-command.h
session.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
session.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
setup.py
sigchain.c
sigchain.h
sort.c perf tools: Prevent condition that all sort keys are elided 2013-11-11 15:56:40 -03:00
sort.h perf tools: Remove unneeded include 2013-11-07 11:51:19 -03:00
srcline.c
stat.c
stat.h
strbuf.c
strbuf.h
strfilter.c perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
strfilter.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
string.c
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c
symbol-minimal.c
symbol.c
symbol.h
target.c perf target: Shorten perf_target__ to target__ 2013-11-12 16:51:03 -03:00
target.h perf record: Add an option to force per-cpu mmaps 2013-11-14 16:10:27 -03:00
thread.c perf tools: Tag thread comm as overriden 2013-11-19 10:33:29 -03:00
thread.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
thread_map.c
thread_map.h
tool.h
top.c perf target: Shorten perf_target__ to target__ 2013-11-12 16:51:03 -03:00
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.h
types.h
unwind.c perf symbols: Limit max callchain using max_stack on DWARF unwinding too 2013-11-14 16:00:23 -03:00
unwind.h perf symbols: Limit max callchain using max_stack on DWARF unwinding too 2013-11-14 16:00:23 -03:00
usage.c
util.c
util.h
values.c
values.h
vdso.c
vdso.h
wrapper.c
xyarray.c
xyarray.h