perf sched: Add 'perf sched map' scheduling event map printout
[safe/jmp/linux-2.6] / tools / perf / util / thread.c
index 12c4341..45efb5d 100644 (file)
@@ -8,7 +8,7 @@
 
 static struct thread *thread__new(pid_t pid)
 {
-       struct thread *self = malloc(sizeof(*self));
+       struct thread *self = calloc(1, sizeof(*self));
 
        if (self != NULL) {
                self->pid = pid;