UNIX file descriptor leak