projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix memory leak in switch drivers (patch from #1132)
[openwrt/svn-archive/archive.git]
/
package
/
switch
/
src
/
switch-core.c
diff --git
a/package/switch/src/switch-core.c
b/package/switch/src/switch-core.c
index c1c9e58d480c7ed0a7293d457cc5c48de2d4d44c..5eeb803aa714614af6053f3aa9859fc5550fa5cf 100644
(file)
--- a/
package/switch/src/switch-core.c
+++ b/
package/switch/src/switch-core.c
@@
-100,6
+100,7
@@
static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff
len = 0;
}
+ kfree(page);
return len;
}