fixed memory leak if socket fails connection in secure mode, added workaround for TLS connections for iOS 5.0
Merge pull request #1 from uken/iOS5TLSandMemory

fixed memory leak if socket fails connection in secure mode, added worka...