connection: Fix memory leak in new_tls_connection
commit d72d9eab seems to have added a memory leak for each connection under some circumstances (I don't quite understand why I can't seemingly reproduce it with e.g. examples/get.c). This attempts to fix it, and does for my app, but it might be more involved than this for all I know.