projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd741ed
)
perf tests x86: Fix memory leak in sample_ustack()
author
Masanari Iida
<standby24x7@gmail.com>
Sat, 19 Apr 2014 15:16:41 +0000
(
00:16
+0900)
committer
Jiri Olsa
<jolsa@redhat.com>
Wed, 23 Apr 2014 11:19:01 +0000
(13:19 +0200)
The buf is not freed, when kernel failed to get stack map
and return.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Link:
http://lkml.kernel.org/r/1398091024-7901-1-git-send-email-standby24x7@gmail.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/arch/x86/tests/dwarf-unwind.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/arch/x86/tests/dwarf-unwind.c
b/tools/perf/arch/x86/tests/dwarf-unwind.c
index b602ad93ce630ae3f611ee74f0bb6277c367a09b..b8c0102c70c8d31c5b9b5447480962251455530e 100644
(file)
--- a/
tools/perf/arch/x86/tests/dwarf-unwind.c
+++ b/
tools/perf/arch/x86/tests/dwarf-unwind.c
@@
-26,6
+26,7
@@
static int sample_ustack(struct perf_sample *sample,
map = map_groups__find(&thread->mg, MAP__FUNCTION, (u64) sp);
if (!map) {
pr_debug("failed to get stack map\n");
+ free(buf);
return -1;
}