projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f33a7c
)
show_schedstat(): fix memleak
author
Adrian Bunk
<
[email protected]
>
Wed, 14 May 2008 23:22:59 +0000
(16:22 -0700)
committer
Ingo Molnar
<
[email protected]
>
Thu, 29 May 2008 09:25:15 +0000
(11:25 +0200)
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 <
[email protected]
>
Cc: Mike Travis <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched_stats.h
patch
|
blob
|
history
diff --git
a/kernel/sched_stats.h
b/kernel/sched_stats.h
index 5bae2e0c3ff293b665e0428ce2942c6e9ac1db0b..a38878e0e49d50cebcbb52fc5a976df23497f3ef 100644
(file)
--- 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;
}