summaryrefslogtreecommitdiff
path: root/package/switch/src
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
commitdd03b56357dec67c4e38952f3438f29776d8faa9 (patch)
treed74c8f058b121401cf3d54a7c2689ac3d9aa1faa /package/switch/src
parent9ad26099333e95fbd3ebe8963a9980d9f1623ccc (diff)
downloadmtk-20170518-dd03b56357dec67c4e38952f3438f29776d8faa9.zip
mtk-20170518-dd03b56357dec67c4e38952f3438f29776d8faa9.tar.gz
mtk-20170518-dd03b56357dec67c4e38952f3438f29776d8faa9.tar.bz2
fix memory leak in switch drivers (patch from #1132)
SVN-Revision: 6011
Diffstat (limited to 'package/switch/src')
-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 c1c9e58..5eeb803 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;
}