projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swconfig: swlib.c: free device name and alias
[openwrt/openwrt.git]
/
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 122250256d7497af9dd4418e270ea43b9591a9cb..334d148c3694259efa1403d9872ba103dd29ca8c 100644
(file)
--- 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)