summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/emile/emile_cipher_openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/emile/emile_cipher_openssl.c b/src/lib/emile/emile_cipher_openssl.c
index e8ec3af93b..b09897ec9b 100644
--- a/src/lib/emile/emile_cipher_openssl.c
+++ b/src/lib/emile/emile_cipher_openssl.c
@@ -193,8 +193,14 @@ on_error:
193#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) 193#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
194 if (ctx) 194 if (ctx)
195 EVP_CIPHER_CTX_cleanup(ctx); 195 EVP_CIPHER_CTX_cleanup(ctx);
196#else
197 if (ctx) {
198 EVP_CIPHER_CTX_cleanup(ctx);
199 EVP_CIPHER_CTX_free(ctx);
200 }
196#endif /* if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) */ 201#endif /* if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) */
197 202
203
198 free(buffer); 204 free(buffer);
199 205
200 /* General error */ 206 /* General error */