Author: blogic
Date: 2015-07-07 15:46:16 +0200 (Tue, 07 Jul 2015)
New Revision: 46232

Modified:
   trunk/package/network/config/swconfig/src/swlib.c
   trunk/package/network/config/swconfig/src/swlib.h
Log:
swconfig: swlib.c: free name and description of attributes

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:46:05 UTC 
(rev 46231)
+++ trunk/package/network/config/swconfig/src/swlib.c   2015-07-07 13:46:16 UTC 
(rev 46232)
@@ -749,6 +749,8 @@
 
        while (a) {
                next = a->next;
+               free(a->name);
+               free(a->description);
                free(a);
                a = next;
        }

Modified: trunk/package/network/config/swconfig/src/swlib.h
===================================================================
--- trunk/package/network/config/swconfig/src/swlib.h   2015-07-07 13:46:05 UTC 
(rev 46231)
+++ trunk/package/network/config/swconfig/src/swlib.h   2015-07-07 13:46:16 UTC 
(rev 46232)
@@ -146,8 +146,8 @@
        int atype;
        int id;
        int type;
-       const char *name;
-       const char *description;
+       char *name;
+       char *description;
        struct switch_attr *next;
 };
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to