Commit deecaa2e by Carlos Martín Nieto

openssl: free the context even if we don't connect

parent bf127eec
...@@ -267,7 +267,6 @@ static int ssl_teardown(SSL *ssl) ...@@ -267,7 +267,6 @@ static int ssl_teardown(SSL *ssl)
else else
ret = 0; ret = 0;
SSL_free(ssl);
return ret; return ret;
} }
...@@ -530,6 +529,7 @@ void openssl_free(git_stream *stream) ...@@ -530,6 +529,7 @@ void openssl_free(git_stream *stream)
{ {
openssl_stream *st = (openssl_stream *) stream; openssl_stream *st = (openssl_stream *) stream;
SSL_free(st->ssl);
git__free(st->host); git__free(st->host);
git__free(st->cert_info.data); git__free(st->cert_info.data);
git_stream_free(st->io); git_stream_free(st->io);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment