From: Nick Mathewson Date: Tue, 7 Dec 2004 06:48:02 +0000 (+0000) Subject: Fix leakable rsa key X-Git-Tag: tor-0.0.9rc7~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f49fd3bcde9ae2a548cd0ab5dfc7ecddb79cc60;p=thirdparty%2Ftor.git Fix leakable rsa key svn:r3099 --- diff --git a/src/common/tortls.c b/src/common/tortls.c index 01d5b58795..647bf26166 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -372,6 +372,8 @@ tor_tls_context_new(crypto_pk_env_t *identity, tor_free(global_tls_context); } global_tls_context = result; + if (rsa) + crypto_free_pk_env(rsa); return 0; error: