[poppler] poppler/SignatureHandler.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 10 21:48:54 UTC 2019
poppler/SignatureHandler.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 03c0bb79945822cbe1e342a28aec8949eed843dd
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri May 10 23:45:12 2019 +0200
Fix small memory leak in SignatureHandler::getCertificateInfo
diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc
index 0afc1593..123dee7d 100644
--- a/poppler/SignatureHandler.cc
+++ b/poppler/SignatureHandler.cc
@@ -190,6 +190,8 @@ std::unique_ptr<X509CertificateInfo> SignatureHandler::getCertificateInfo() cons
certInfo->setCertificateDER(SECItemToGooString(cert->derCert));
certInfo->setIsSelfSigned(CERT_CompareName(&cert->subject, &cert->issuer) == SECEqual);
+ SECKEY_DestroyPublicKey(pk);
+
return certInfo;
}
More information about the poppler
mailing list