aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c2
1 files changed, 2 insertions, 0 deletions
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: