diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-28 13:52:37 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-28 13:52:37 +0000 |
commit | 8bf9a785b171d1398cbd2ab12041733d0ba2df94 (patch) | |
tree | 6437a44ec74955df0f617cb8ef03afebd93bb9fb /package/switch/src/switch-adm.c | |
parent | ebbec463c78aa5c4450a4e6be9ed1207f662e4ec (diff) |
switch: fix some memory leaks in switch_parse_vlan()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29936 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-adm.c')
-rw-r--r-- | package/switch/src/switch-adm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c index 2aff14207b..3826ca57f8 100644 --- a/package/switch/src/switch-adm.c +++ b/package/switch/src/switch-adm.c @@ -341,6 +341,7 @@ static int handle_vlan_port_write(void *driver, char *buf, int nr) } adm_wreg(0x13 + nr, (__u16) ports); + kfree(c); return 0; } |