fix leak
authorDr. Stephen Henson <steve@openssl.org>
Thu, 22 Mar 2012 16:28:07 +0000 (16:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 22 Mar 2012 16:28:07 +0000 (16:28 +0000)
crypto/evp/p5_crpt.c

index 7d9c1f0..294cc90 100644 (file)
@@ -138,5 +138,6 @@ int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen,
        OPENSSL_cleanse(iv, EVP_MAX_IV_LENGTH);
        rv = 1;
        err:
+       EVP_MD_CTX_cleanup(&ctx);
        return rv;
 }