fix memory leak in switch drivers (patch from #1132)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 7 Jan 2007 14:59:43 +0000 (14:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 7 Jan 2007 14:59:43 +0000 (14:59 +0000)
SVN-Revision: 6011

openwrt/target/linux/package/switch/src/switch-core.c

index 82166463702d09df616769a268b42e24e01f1319..d80b6d328e9b7eb0a362d7a226f464ba5db45ee2 100644 (file)
@@ -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;
 }