mirror of https://github.com/hak5/openwrt-owl.git
swconfig: swlib.c: free name and description of attributes
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 46232owl
parent
294907aa3a
commit
5da98f3478
|
@ -749,6 +749,8 @@ swlib_free_attributes(struct switch_attr **head)
|
||||||
|
|
||||||
while (a) {
|
while (a) {
|
||||||
next = a->next;
|
next = a->next;
|
||||||
|
free(a->name);
|
||||||
|
free(a->description);
|
||||||
free(a);
|
free(a);
|
||||||
a = next;
|
a = next;
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,8 +146,8 @@ struct switch_attr {
|
||||||
int atype;
|
int atype;
|
||||||
int id;
|
int id;
|
||||||
int type;
|
int type;
|
||||||
const char *name;
|
char *name;
|
||||||
const char *description;
|
char *description;
|
||||||
struct switch_attr *next;
|
struct switch_attr *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue