X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fswitch%2Fsrc%2Fswitch-core.c;h=5eeb803aa714614af6053f3aa9859fc5550fa5cf;hb=a702c26fde6ee7159afa6804204ac1f4a81be468;hp=7bf705afe47f674affab6c6fcd4a13074566735f;hpb=f52d66ff00b24111f87c274d3d7085ef2e1d27b1;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; }