From: Felix Fietkau Date: Sun, 7 Jan 2007 14:59:43 +0000 (+0000) Subject: fix memory leak in switch drivers (patch from #1132) X-Git-Tag: whiterussian_0.9~18 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=01cbed14085574c14f247668727e29251bce555e;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix memory leak in switch drivers (patch from #1132) SVN-Revision: 6011 --- diff --git a/openwrt/target/linux/package/switch/src/switch-core.c b/openwrt/target/linux/package/switch/src/switch-core.c index 8216646370..d80b6d328e 100644 --- a/openwrt/target/linux/package/switch/src/switch-core.c +++ b/openwrt/target/linux/package/switch/src/switch-core.c @@ -107,6 +107,7 @@ static ssize_t switch_proc_read(struct file *file, char *buf, size_t count, loff len = 0; } + kfree(page); return len; }