summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-07 14:59:43 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-07 14:59:43 +0000
commit29e8bb31302ea0bdee2d4ac80edd8a9c96d1a96a (patch)
treeffbb1bc37e830db3268b24cc4c72107b18de1f39
parent194473b2cf09596344dc9fbe8d479c809494dd15 (diff)
fix memory leak in switch drivers (patch from #1132)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6011 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 c1c9e58d4..5eeb803aa 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;
}