(parse_rsa_private_key): free type after use

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18261 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-06 12:08:20 +00:00
parent 72c61fb9f1
commit 556a53109c

View File

@@ -198,12 +198,12 @@ parse_rsa_private_key(hx509_context context, struct hx509_collector *c,
cipher = EVP_get_cipherbyname(type);
if (cipher == NULL) {
free(type);
free(ivdata);
hx509_set_error_string(context, 0, EINVAL,
"RSA key encrypted with "
"unsupported cipher: %s",
type);
free(type);
return EINVAL;
}