projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf machine: Protect the machine->threads with a rwlock
[linux-2.6-block.git]
/
tools
/
perf
/
tests
/
hists_cumulate.c
diff --git
a/tools/perf/tests/hists_cumulate.c
b/tools/perf/tests/hists_cumulate.c
index b08a95a5ca1aa53f4faed0aa8b27168b59f5e330..620f626e5b3517326d0550e6198f4384945a392d 100644
(file)
--- a/
tools/perf/tests/hists_cumulate.c
+++ b/
tools/perf/tests/hists_cumulate.c
@@
-105,8
+105,10
@@
static int add_hist_entries(struct hists *hists, struct machine *machine)
goto out;
if (hist_entry_iter__add(&iter, &al, evsel, &sample,
- PERF_MAX_STACK_DEPTH, NULL) < 0)
+ PERF_MAX_STACK_DEPTH, NULL) < 0) {
+ addr_location__put(&al);
goto out;
+ }
fake_samples[i].thread = al.thread;
fake_samples[i].map = al.map;