Author: blogic Date: 2015-07-07 15:45:44 +0200 (Tue, 07 Jul 2015) New Revision: 46229
Modified: trunk/package/network/config/swconfig/src/swlib.c trunk/package/network/config/swconfig/src/swlib.h Log: swconfig: swlib.c: free device name and alias Signed-off-by: Alexandru Ardelean <[email protected]> Modified: trunk/package/network/config/swconfig/src/swlib.c =================================================================== --- trunk/package/network/config/swconfig/src/swlib.c 2015-07-07 13:45:37 UTC (rev 46228) +++ trunk/package/network/config/swconfig/src/swlib.c 2015-07-07 13:45:44 UTC (rev 46229) @@ -761,6 +761,8 @@ 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) Modified: trunk/package/network/config/swconfig/src/swlib.h =================================================================== --- trunk/package/network/config/swconfig/src/swlib.h 2015-07-07 13:45:37 UTC (rev 46228) +++ trunk/package/network/config/swconfig/src/swlib.h 2015-07-07 13:45:44 UTC (rev 46229) @@ -116,8 +116,8 @@ struct switch_dev { int id; char dev_name[IFNAMSIZ]; - const char *name; - const char *alias; + char *name; + char *alias; int ports; int vlans; int cpu_port; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
