Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6fba545 authored by Adrian Bunk's avatar Adrian Bunk Committed by Ingo Molnar
Browse files

show_schedstat(): fix memleak



The Coverity checker spotted a memleak introduced by commit
39106dcf (cpumask: use new cpus_scnprintf
function).

It seems the kfree() got lost between v2 and v3 of this patch...

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Cc: Mike Travis <travis@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3f33a7ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ static int show_schedstat(struct seq_file *seq, void *v)
		preempt_enable();
#endif
	}
	kfree(mask_str);
	return 0;
}