diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-07 14:59:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-07 14:59:43 +0000 |
commit | 0d6d6e46083fc3026a41d54b19fde069e3fffda1 (patch) | |
tree | ffbb1bc37e830db3268b24cc4c72107b18de1f39 /package/switch | |
parent | ed1654aab24355fa7e23b84cb1034648e3278e9a (diff) | |
download | master-187ad058-0d6d6e46083fc3026a41d54b19fde069e3fffda1.tar.gz master-187ad058-0d6d6e46083fc3026a41d54b19fde069e3fffda1.tar.bz2 master-187ad058-0d6d6e46083fc3026a41d54b19fde069e3fffda1.zip |
fix memory leak in switch drivers (patch from #1132)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6011 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r-- | package/switch/src/switch-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/switch/src/switch-core.c b/package/switch/src/switch-core.c index c1c9e58d48..5eeb803aa7 100644 --- 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; } |