show_schedstat(): fix memleak
authorAdrian Bunk <bunk@kernel.org>
Wed, 14 May 2008 23:22:59 +0000 (16:22 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 May 2008 09:25:15 +0000 (11:25 +0200)
commitc6fba5451a84143f34056a465e72ba187fcc651c
treeb552b99533703a0e63b809f6fa77f81255c384bc
parent3f33a7ce9567ded582af1ab71f9802165fe12f09
show_schedstat(): fix memleak

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

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

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Mike Travis <travis@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_stats.h