Commit 36ac9f86 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

iphlpapi: Fix a couple of file descriptor leaks.

parent a6e27ea9
......@@ -818,6 +818,7 @@ DWORD getInterfaceMtuByName(const char *name, PDWORD mtu)
#endif
ret = NO_ERROR;
}
close(fd);
}
else
ret = ERROR_NO_MORE_FILES;
......@@ -858,6 +859,7 @@ DWORD getInterfaceStatusByName(const char *name, PDWORD status)
*status = MIB_IF_OPER_STATUS_NON_OPERATIONAL;
ret = NO_ERROR;
}
close(fd);
}
else
ret = ERROR_NO_MORE_FILES;
......
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