SCT: another memory leak in SCT parsing.

This commit is contained in:
Johanna Amann 2017-05-14 19:38:36 -07:00
parent e1d42ec99c
commit 7a1ec3501d
2 changed files with 3 additions and 2 deletions

View file

@ -213,6 +213,7 @@ void file_analysis::X509Common::ParseSignedCertificateTimestamps(X509_EXTENSION*
reporter->Error("X509::ParseSignedCertificateTimestamps could not parse SCT");
}
M_ASN1_OCTET_STRING_free(inner);
OPENSSL_free(ext_val_second_pointer);
interp->FlowEOF();

View file

@ -703,8 +703,8 @@ sct_verify_err:
if (mdctx)
EVP_MD_CTX_destroy(mdctx);
if (key)
EVP_PKEY_free(key);
cerr << errstr << endl;
EVP_PKEY_free(key);
reporter->Error("%s", errstr.c_str());
return new Val(0, TYPE_BOOL);
%}