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

package/switch/src/switch-core.c

index c1c9e58d480c7ed0a7293d457cc5c48de2d4d44c..5eeb803aa714614af6053f3aa9859fc5550fa5cf 100644 (file)
@@ -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;
 }