Commit ba3a4ec3 authored by Albert Astals Cid's avatar Albert Astals Cid

Delete the signature_info in FormFieldSignature not in pdfsigverify

parent e6b3d696
......@@ -1391,6 +1391,7 @@ FormFieldSignature::~FormFieldSignature()
byte_range->free();
delete byte_range;
}
delete signature_info;
}
void FormFieldSignature::parseInfo()
......
......@@ -151,12 +151,11 @@ int main(int argc, char *argv[])
printf(" - Signer Certificate Common Name: %s\n", sig_info->getSignerName());
printf(" - Signing Time: %s\n", time_str = getReadableTime(sig_info->getSigningTime()));
printf(" - Signature Validation: %s\n", getReadableSigState(sig_info->getSignatureValStatus()));
gfree(time_str);
if (sig_info->getSignatureValStatus() != SIGNATURE_VALID || dontVerifyCert) {
continue;
}
printf(" - Certificate Validation: %s\n", getReadableCertState(sig_info->getCertificateValStatus()));
gfree(time_str);
delete sig_info;
}
exitCode = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment