Unverified Commit 4db946a0 by Simos Xenitellis Committed by Christian Brauner

coverity: #1248106

Resource leak Signed-off-by: 's avatarSimos Xenitellis <simos.lists@googlemail.com>
parent f6e94633
...@@ -537,7 +537,8 @@ static char * is_wlan(const char *ifname) ...@@ -537,7 +537,8 @@ static char * is_wlan(const char *ifname)
fseek(f, 0, SEEK_END); fseek(f, 0, SEEK_END);
physlen = ftell(f); physlen = ftell(f);
fseek(f, 0, SEEK_SET); fseek(f, 0, SEEK_SET);
physname = malloc(physlen+1);
physname = malloc(physlen + 1);
if (!physname) { if (!physname) {
fclose(f); fclose(f);
goto bad; goto bad;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment