swconfig: swlib.c: free name and description of attributes
[openwrt/openwrt.git] / package / network / config / swconfig / src / swlib.c
index d7e570e05d1d427b408834a59e4e3ccf00ffccc8..d9ef62f4ab46008d251b50a57dacddfce40f1872 100644 (file)
@@ -749,6 +749,8 @@ swlib_free_attributes(struct switch_attr **head)
 
        while (a) {
                next = a->next;
+               free(a->name);
+               free(a->description);
                free(a);
                a = next;
        }