diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index a21247543fc1..4c8653a86aaf 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -181,7 +181,7 @@ static void parse_source(struct sym_entry *syme) | |||
181 | return; | 181 | return; |
182 | 182 | ||
183 | if (syme->src == NULL) { | 183 | if (syme->src == NULL) { |
184 | syme->src = calloc(1, sizeof(*source)); | 184 | syme->src = zalloc(sizeof(*source)); |
185 | if (syme->src == NULL) | 185 | if (syme->src == NULL) |
186 | return; | 186 | return; |
187 | pthread_mutex_init(&syme->src->lock, NULL); | 187 | pthread_mutex_init(&syme->src->lock, NULL); |