aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-adm.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/switch/src/switch-adm.c')
-rw-r--r--package/switch/src/switch-adm.c1
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;
}