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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dd03b56357dec67c4e38952f3438f29776d8faa9;p=openwrt%2Fstaging%2Fmans0n.git fix memory leak in switch drivers (patch from #1132) SVN-Revision: 6011 --- 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; }