Commit 7d3930a15e4b4eb292c0e24debdf1b39a6d7d63b

Edward Thomson 2018-07-26T11:15:23

Merge pull request #4739 from pks-t/pks/mbedtls-unused-variable mbedtls: remove unused variable "cacert"

diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index f3aa5d7..bd7bd31 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -86,8 +86,6 @@ int git_mbedtls_stream_global_init(void)
 	char *cipher_string = NULL;
 	char *cipher_string_tmp = NULL;
 
-	mbedtls_x509_crt *cacert = NULL;
-
 	git__ssl_conf = git__malloc(sizeof(mbedtls_ssl_config));
 	GITERR_CHECK_ALLOC(git__ssl_conf);
 
@@ -163,8 +161,6 @@ int git_mbedtls_stream_global_init(void)
 	return 0;
 
 cleanup:
-	mbedtls_x509_crt_free(cacert);
-	git__free(cacert);
 	mbedtls_ctr_drbg_free(ctr_drbg);
 	git__free(ctr_drbg);
 	mbedtls_ssl_config_free(git__ssl_conf);