From: Adrian Bunk Date: Wed, 14 May 2008 23:22:59 +0000 (-0700) Subject: show_schedstat(): fix memleak X-Git-Tag: v2.6.26-rc5~40^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c6fba5451a84143f34056a465e72ba187fcc651c;p=linux-2.6-omap-h63xx.git 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 Cc: Mike Travis Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_stats.h b/kernel/sched_stats.h index 5bae2e0c3ff..a38878e0e49 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; }