aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/src/swlib.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-07-07 13:46:16 +0000
committerJohn Crispin <blogic@openwrt.org>2015-07-07 13:46:16 +0000
commit9be1ee479cc730e0f1bc169e9b9f51d42c6cb846 (patch)
treebf3b3576d3d8f7523b645e72262390c5ff603d8c /package/network/config/swconfig/src/swlib.c
parent3f6787dd4bce5b9f7d1b6a6f4f22c6dc5d3c9785 (diff)
downloadmaster-187ad058-9be1ee479cc730e0f1bc169e9b9f51d42c6cb846.tar.gz
master-187ad058-9be1ee479cc730e0f1bc169e9b9f51d42c6cb846.tar.bz2
master-187ad058-9be1ee479cc730e0f1bc169e9b9f51d42c6cb846.zip
swconfig: swlib.c: free name and description of attributes
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46232 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config/swconfig/src/swlib.c')
-rw-r--r--package/network/config/swconfig/src/swlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/config/swconfig/src/swlib.c b/package/network/config/swconfig/src/swlib.c
index d7e570e05d..d9ef62f4ab 100644
--- 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;
}