swconfig: swlib.c: free device name and alias
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46229
This commit is contained in:
parent
404e599933
commit
08d4d4921d
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue