]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08da1e200a1c2e56764101473bf02f2e7dd61e4a
treeb552b99533703a0e63b809f6fa77f81255c384bc
parentf1b891092b7dc56114b2290daa6a9b93eb0af6b6
show_schedstat(): fix memleak

The Coverity checker spotted a memleak introduced by commit
7e65b299990934db428ed0c111d9e9959d338230 (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