Fix memory leak. From HEAD.

This commit is contained in:
Dr. Stephen Henson 2011-10-09 16:04:17 +00:00
parent 38e408076e
commit 5473b6bc2f

View File

@ -153,6 +153,8 @@ X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
/* Setup keyfunc */
X509_ALGOR_free(pbe2->keyfunc);
pbe2->keyfunc = PKCS5_pbkdf2_set(iter, salt, saltlen, prf_nid, keylen);
if (!pbe2->keyfunc)