summaryrefslogtreecommitdiff
path: root/src/streams/mbedtls.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-21 00:45:24 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-07-20 17:21:51 -0700
commit4e62d26ff429816747bf75e8e3913338427557bc (patch)
tree89886d71f186eacb91b06855bb8f875e101fe4ae /src/streams/mbedtls.c
parentdefa97091097eaa75ca55db114fd56a749927409 (diff)
downloadlibgit2-4e62d26ff429816747bf75e8e3913338427557bc.tar.gz
mbedtls: free ciphers_list
Diffstat (limited to 'src/streams/mbedtls.c')
-rw-r--r--src/streams/mbedtls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index 5d885247b..3e19c05ea 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -129,6 +129,7 @@ int git_mbedtls_stream_global_init(void)
goto cleanup;
}
mbedtls_ssl_conf_ciphersuites(git__ssl_conf, ciphers_list);
+ git__free(ciphers_list);
/* Seeding the random number generator */
mbedtls_entropy = git__malloc(sizeof(mbedtls_entropy_context));
@@ -166,6 +167,7 @@ cleanup:
mbedtls_ctr_drbg_free(ctr_drbg);
git__free(ctr_drbg);
mbedtls_ssl_config_free(git__ssl_conf);
+ git__free(ciphers_list);
git__free(git__ssl_conf);
git__ssl_conf = NULL;