mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 10:37:05 +00:00
openssl: free the context even if we don't connect
This commit is contained in:
parent
bf127eec4a
commit
deecaa2ece
@ -267,7 +267,6 @@ static int ssl_teardown(SSL *ssl)
|
||||
else
|
||||
ret = 0;
|
||||
|
||||
SSL_free(ssl);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -530,6 +529,7 @@ void openssl_free(git_stream *stream)
|
||||
{
|
||||
openssl_stream *st = (openssl_stream *) stream;
|
||||
|
||||
SSL_free(st->ssl);
|
||||
git__free(st->host);
|
||||
git__free(st->cert_info.data);
|
||||
git_stream_free(st->io);
|
||||
|
Loading…
Reference in New Issue
Block a user