Skip to content
Snippets Groups Projects
Commit 1e681f0a authored by Saurabh Verma's avatar Saurabh Verma
Browse files

libeasy: fix memory leak for br_get_iflist.

parent 208a7496
Branches
No related tags found
1 merge request!185libeasy: fix memory leak for br_get_iflist.
Checking pipeline status
......@@ -474,8 +474,10 @@ int LIBEASY_API br_get_iflist(const char *brname, int *num, char ifs[][16])
if (namelist[i]->d_name[0] == '.' &&
(namelist[i]->d_name[1] == '\0' ||
(namelist[i]->d_name[1] == '.' &&
namelist[i]->d_name[2] == '\0')))
namelist[i]->d_name[2] == '\0'))) {
free(namelist[i]);
continue;
}
libeasy_dbg("%s\n", namelist[i]->d_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment