aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-07 14:59:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-07 14:59:43 +0000
commit0d6d6e46083fc3026a41d54b19fde069e3fffda1 (patch)
treeffbb1bc37e830db3268b24cc4c72107b18de1f39 /package/switch
parented1654aab24355fa7e23b84cb1034648e3278e9a (diff)
downloadupstream-0d6d6e46083fc3026a41d54b19fde069e3fffda1.tar.gz
upstream-0d6d6e46083fc3026a41d54b19fde069e3fffda1.tar.bz2
upstream-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.c1
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;
}