Commit 2fabb622edccac0dc86542555afc390bee4d4f68

Edward Thomson 2018-07-21T01:36:46

mbedtls: free stream on shutdown

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index b6929cc..f3aa5d7 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -359,6 +359,7 @@ void mbedtls_stream_free(git_stream *stream)
 	git__free(st->host);
 	git__free(st->cert_info.data);
 	git_stream_free(st->io);
+	mbedtls_ssl_free(st->ssl);
 	git__free(st->ssl);
 	git__free(st);
 }