diff options
Diffstat (limited to 'tools/perf/util/thread.c')
-rw-r--r-- | tools/perf/util/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index 0f6d78c9863a..1796625f7784 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
@@ -11,7 +11,7 @@ static struct thread *last_match; | |||
11 | 11 | ||
12 | static struct thread *thread__new(pid_t pid) | 12 | static struct thread *thread__new(pid_t pid) |
13 | { | 13 | { |
14 | struct thread *self = calloc(1, sizeof(*self)); | 14 | struct thread *self = zalloc(sizeof(*self)); |
15 | 15 | ||
16 | if (self != NULL) { | 16 | if (self != NULL) { |
17 | self->pid = pid; | 17 | self->pid = pid; |