(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:
@@ -198,12 +198,12 @@ parse_rsa_private_key(hx509_context context, struct hx509_collector *c,
|
|||||||
|
|
||||||
cipher = EVP_get_cipherbyname(type);
|
cipher = EVP_get_cipherbyname(type);
|
||||||
if (cipher == NULL) {
|
if (cipher == NULL) {
|
||||||
free(type);
|
|
||||||
free(ivdata);
|
free(ivdata);
|
||||||
hx509_set_error_string(context, 0, EINVAL,
|
hx509_set_error_string(context, 0, EINVAL,
|
||||||
"RSA key encrypted with "
|
"RSA key encrypted with "
|
||||||
"unsupported cipher: %s",
|
"unsupported cipher: %s",
|
||||||
type);
|
type);
|
||||||
|
free(type);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user