kernel_optimize_test/tools/perf
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
..
arch
bench
config tools/perf/build: Fix feature-libunwind-debug-frame handling 2013-11-14 18:00:45 +01:00
Documentation perf record: Add an option to force per-cpu mmaps 2013-11-14 16:10:27 -03:00
python
scripts
tests perf tools: Use perf_evlist__{first,last}, perf_evsel__next 2013-11-14 16:00:10 -03:00
ui perf ui browser: Fix segfault caused by off by one handling END key 2013-11-14 16:00:31 -03:00
util perf header: Fix possible memory leaks in process_group_desc() 2013-11-19 10:34:05 -03:00
.gitignore
bash_completion
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c
builtin-evlist.c
builtin-help.c
builtin-inject.c
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c perf probe: Add '--demangle'/'--no-demangle' 2013-11-14 16:06:28 -03:00
builtin-record.c perf record: Add an option to force per-cpu mmaps 2013-11-14 16:10:27 -03:00
builtin-report.c
builtin-sched.c
builtin-script.c
builtin-stat.c
builtin-timechart.c
builtin-top.c perf top: Add missing newline if the 'uid' is invalid 2013-11-14 15:59:50 -03:00
builtin-trace.c perf trace: Tweak summary output 2013-11-14 15:59:20 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile
Makefile.perf
MANIFEST
perf-archive.sh
perf.c
perf.h