projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swconfig: swlib.c: free name and description of attributes
[openwrt/openwrt.git]
/
package
/
network
/
config
/
swconfig
/
src
/
swlib.c
diff --git
a/package/network/config/swconfig/src/swlib.c
b/package/network/config/swconfig/src/swlib.c
index d7e570e05d1d427b408834a59e4e3ccf00ffccc8..d9ef62f4ab46008d251b50a57dacddfce40f1872 100644
(file)
--- a/
package/network/config/swconfig/src/swlib.c
+++ b/
package/network/config/swconfig/src/swlib.c
@@
-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;
}