diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-05-14 16:22:59 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-29 11:25:15 +0200 |
commit | c6fba5451a84143f34056a465e72ba187fcc651c (patch) | |
tree | b552b99533703a0e63b809f6fa77f81255c384bc /kernel | |
parent | 3f33a7ce9567ded582af1ab71f9802165fe12f09 (diff) | |
download | kernel_samsung_espresso10-c6fba5451a84143f34056a465e72ba187fcc651c.zip kernel_samsung_espresso10-c6fba5451a84143f34056a465e72ba187fcc651c.tar.gz kernel_samsung_espresso10-c6fba5451a84143f34056a465e72ba187fcc651c.tar.bz2 |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_stats.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched_stats.h b/kernel/sched_stats.h index 5bae2e0..a38878e 100644 --- a/kernel/sched_stats.h +++ b/kernel/sched_stats.h @@ -67,6 +67,7 @@ static int show_schedstat(struct seq_file *seq, void *v) preempt_enable(); #endif } + kfree(mask_str); return 0; } |