aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/src/swlib.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-07-07 13:45:44 +0000
committerJohn Crispin <blogic@openwrt.org>2015-07-07 13:45:44 +0000
commitb0d7b73f547a3824c32370b7ba620d8050292aa3 (patch)
tree3341b1c370ba444ca8816efed858e7ce6c4d3001 /package/network/config/swconfig/src/swlib.c
parentdea004f31cfb36ee16c1d23d505389cdaaa74fb8 (diff)
downloadmaster-187ad058-b0d7b73f547a3824c32370b7ba620d8050292aa3.tar.gz
master-187ad058-b0d7b73f547a3824c32370b7ba620d8050292aa3.tar.bz2
master-187ad058-b0d7b73f547a3824c32370b7ba620d8050292aa3.zip
swconfig: swlib.c: free device name and alias
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46229 3c298f89-4303-0410-b956-a3cf2f4a3e73
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)