Fix memory leak.

This commit is contained in:
Dr. Stephen Henson 2011-02-07 13:34:00 +00:00
parent 83e9c36261
commit f9678b8b57

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)