From f71e587c5e2be1cc9d310e73b73e0c71e742a06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 23 Sep 2013 17:12:43 +0200 Subject: [PATCH] Fix memory leak in ssl cipher usage --- library/ssl_tls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 86c2953d4..5ab4a5cbe 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -4127,6 +4127,9 @@ void ssl_transform_free( ssl_transform *transform ) inflateEnd( &transform->ctx_inflate ); #endif + cipher_free_ctx( &transform->cipher_ctx_enc ); + cipher_free_ctx( &transform->cipher_ctx_dec ); + md_free_ctx( &transform->md_ctx_enc ); md_free_ctx( &transform->md_ctx_dec );