diff options
Diffstat (limited to 'src/wrapper.c')
-rw-r--r-- | src/wrapper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index a7511f0a..af166dae 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -123,6 +123,9 @@ void ssh_cipher_clear(struct ssh_cipher_struct *cipher){ if (cipher->cleanup != NULL){ cipher->cleanup(cipher); } +#ifdef HAVE_LIBCRYPTO + EVP_CIPHER_CTX_free(cipher->ctx); +#endif } static void cipher_free(struct ssh_cipher_struct *cipher) { |