The file descriptor leak is still present. Note that closing the socket
used for the SIOCGIFHWADDR ioctl in Linux did NOT deallocate the descriptor, nor was an error returned by close! I changed the code to use a statically allocated socket - better anyway.
Showing with 12 additions and 36 deletions