Skip to content
Snippets Groups Projects
Commit 0711e53e authored by blogic's avatar blogic
Browse files

swconfig: swlib.c: free device name and alias


Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46229 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent e9c1521f
No related branches found
No related tags found
No related merge requests found
...@@ -761,6 +761,8 @@ swlib_free(struct switch_dev *dev) ...@@ -761,6 +761,8 @@ swlib_free(struct switch_dev *dev)
swlib_free_attributes(&dev->ops); swlib_free_attributes(&dev->ops);
swlib_free_attributes(&dev->port_ops); swlib_free_attributes(&dev->port_ops);
swlib_free_attributes(&dev->vlan_ops); swlib_free_attributes(&dev->vlan_ops);
free(dev->name);
free(dev->alias);
free(dev); free(dev);
if (--refcount == 0) if (--refcount == 0)
......
...@@ -116,8 +116,8 @@ struct uci_package; ...@@ -116,8 +116,8 @@ struct uci_package;
struct switch_dev { struct switch_dev {
int id; int id;
char dev_name[IFNAMSIZ]; char dev_name[IFNAMSIZ];
const char *name; char *name;
const char *alias; char *alias;
int ports; int ports;
int vlans; int vlans;
int cpu_port; int cpu_port;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment