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 c1c9e58..5eeb803 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;
 }