Fixed #5576 (false positive: (POSIX) (error) Resource leak: sockfd)