From 01cbed14085574c14f247668727e29251bce555e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 7 Jan 2007 14:59:43 +0000 Subject: [PATCH] fix memory leak in switch drivers (patch from #1132) SVN-Revision: 6011 --- openwrt/target/linux/package/switch/src/switch-core.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2