aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/src/swlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/config/swconfig/src/swlib.c')
-rw-r--r--package/network/config/swconfig/src/swlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/config/swconfig/src/swlib.c b/package/network/config/swconfig/src/swlib.c
index 122250256d..334d148c36 100644
--- a/package/network/config/swconfig/src/swlib.c
+++ b/package/network/config/swconfig/src/swlib.c
@@ -761,6 +761,8 @@ swlib_free(struct switch_dev *dev)
swlib_free_attributes(&dev->ops);
swlib_free_attributes(&dev->port_ops);
swlib_free_attributes(&dev->vlan_ops);
+ free(dev->name);
+ free(dev->alias);
free(dev);
if (--refcount == 0)