From 08d4d4921d5f93c063e4fed545a63d23ba71648c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 7 Jul 2015 13:45:44 +0000 Subject: swconfig: swlib.c: free device name and alias Signed-off-by: Alexandru Ardelean SVN-Revision: 46229 --- package/network/config/swconfig/src/swlib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/network/config/swconfig/src/swlib.c') 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) -- cgit v1.2.3