diff options
author | John Crispin <john@openwrt.org> | 2015-07-07 13:45:44 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-07 13:45:44 +0000 |
commit | 08d4d4921d5f93c063e4fed545a63d23ba71648c (patch) | |
tree | 7476bc507bb3d64cf88e6151ebe6d9f0c7fbb805 /package/network/config/swconfig/src/swlib.c | |
parent | 404e59993352e4715a16589fbfd7fd53a6760bf8 (diff) | |
download | mtk-20170518-08d4d4921d5f93c063e4fed545a63d23ba71648c.zip mtk-20170518-08d4d4921d5f93c063e4fed545a63d23ba71648c.tar.gz mtk-20170518-08d4d4921d5f93c063e4fed545a63d23ba71648c.tar.bz2 |
swconfig: swlib.c: free device name and alias
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 46229
Diffstat (limited to 'package/network/config/swconfig/src/swlib.c')
-rw-r--r-- | package/network/config/swconfig/src/swlib.c | 2 |
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 1222502..334d148 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) |