Skip to content

Commit

Permalink
show_schedstat(): fix memleak
Browse files Browse the repository at this point in the history
The Coverity checker spotted a memleak introduced by commit
39106dc (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>
  • Loading branch information
Adrian Bunk authored and Ingo Molnar committed May 29, 2008
1 parent 3f33a7c commit c6fba54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static int show_schedstat(struct seq_file *seq, void *v)
preempt_enable();
#endif
}
kfree(mask_str);
return 0;
}

Expand Down

0 comments on commit c6fba54

Please sign in to comment.