X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fswitch%2Fsrc%2Fswitch-core.c;h=5eeb803aa714614af6053f3aa9859fc5550fa5cf;hb=23660965c9671a573d958374ce1ef0b7c5b317b8;hp=7bf705afe47f674affab6c6fcd4a13074566735f;hpb=ddefa678f669b4b68a05e4278b4e892825c0fb39;p=openwrt-10.03%2F.git diff --git a/package/switch/src/switch-core.c b/package/switch/src/switch-core.c index 7bf705afe..5eeb803aa 100644 --- a/package/switch/src/switch-core.c +++ b/package/switch/src/switch-core.c @@ -32,7 +32,7 @@ * ports: same syntax as for nvram's vlan*ports (eg. "1 2 3 4 5*") */ -#include +#include #include #include #include @@ -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; }