Skip to content

Commit

Permalink
Clean key_wrapper in clean_up section
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Oct 11, 2024
1 parent 47983c1 commit d81125e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/windows/windows_pki_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ int aws_import_key_pair_to_cert_context(
&decoded_len)) {
cert_type = AWS_CT_X509_RSA;
}
LocalFree(key_wrapper);
}
#ifndef AWS_SUPPORT_WIN7
else if (CryptDecodeObjectEx(
Expand Down Expand Up @@ -745,6 +744,7 @@ int aws_import_key_pair_to_cert_context(
aws_pem_objects_clean_up(&private_keys);

LocalFree(key);
LocalFree(key_wrapper);

if (result == AWS_OP_ERR) {
if (*store != NULL) {
Expand Down

0 comments on commit d81125e

Please sign in to comment.