1. The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In -[GCDAsyncSocket doAccept:]: Leak of memory or pointers to system resources( Handle variable childSocketFD going out of scope leaks the handle.)
2.The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly.
In -[GCDAsyncSocket doReadEOF]: Value returned from a library function is not checked for errors before being used. This value may indicate an error condition7. check_return: Calling poll(pfd, 1U, 0) without checking return value. This library function may fail and return an error code.
3. The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly.
In -[GCDAsyncSocket connectWithAddressUN:error:]: Value returned from a library function is not checked for errors before being used. This value may indicate an error condition. 4. check_return: Calling setsockopt(socketFD, 65535, 4, &reuseOn, 4U) without checking return value. This library function may fail and return an error code.
4. function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly.
In -[GCDAsyncSocket createSocket:connectInterface:errPtr:]: Value returned from a library function is not checked for errors before being used. This value may indicate an error condition.3. check_return: Calling setsockopt(socketFD, 65535, 4130, &nosigpipe, 4U) without checking return value. This library function may fail and return an error code.
5.The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly.
In -[GCDAsyncSocket bindSocket:toInterface:error:]: Value returned from a library function is not checked for errors before being used. This value may indicate an error condition.check_return: Calling setsockopt(socketFD, 65535, 4, &reuseOn, 4U) without checking return value. This library function may fail and return an error code.
The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly.
In -[GCDAsyncSocket doAccept:]: Value returned from a library function is not checked for errors before being used. This value may indicate an error condition.Calling setsockopt(childSocketFD, 65535, 4130, &nosigpipe, 4U) without checking return value. This library function may fail and return an error code.