diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_cipher.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c index 54e363faa2..e1408b9198 100644 --- a/ext/openssl/ossl_cipher.c +++ b/ext/openssl/ossl_cipher.c @@ -81,11 +81,7 @@ ossl_cipher_new(const EVP_CIPHER *cipher) static void ossl_cipher_free(void *ptr) { - EVP_CIPHER_CTX *ctx = ptr; - if (ctx) { - EVP_CIPHER_CTX_cleanup(ctx); - ruby_xfree(ctx); - } + EVP_CIPHER_CTX_free(ptr); } static VALUE |