summaryrefslogtreecommitdiff
path: root/gtests/common
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2016-11-23 14:12:46 +1100
committerMartin Thomson <martin.thomson@gmail.com>2016-11-23 14:12:46 +1100
commita244a77383a0587db8c9e78a7d048bb46aee295f (patch)
tree3b3031a70a6a6ad9524a58b9f97b172e4011e838 /gtests/common
parentdca8f021fd97fc8f996c6c769c6d8a81bcde3f95 (diff)
downloadnss-hg-a244a77383a0587db8c9e78a7d048bb46aee295f.tar.gz
Bug 1318561 - Free CA name list, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D79
Diffstat (limited to 'gtests/common')
-rw-r--r--gtests/common/scoped_ptrs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtests/common/scoped_ptrs.h b/gtests/common/scoped_ptrs.h
index dd609feb6..9a93e78c3 100644
--- a/gtests/common/scoped_ptrs.h
+++ b/gtests/common/scoped_ptrs.h
@@ -19,6 +19,9 @@ struct ScopedDelete {
void operator()(CERTCertificateList* list) {
CERT_DestroyCertificateList(list);
}
+ void operator()(CERTCertList* list) {
+ CERT_DestroyCertList(list);
+ }
void operator()(CERTSubjectPublicKeyInfo* spki) {
SECKEY_DestroySubjectPublicKeyInfo(spki);
}
@@ -44,6 +47,7 @@ struct ScopedMaybeDelete {
SCOPED(CERTCertificate);
SCOPED(CERTCertificateList);
+SCOPED(CERTCertList);
SCOPED(CERTSubjectPublicKeyInfo);
SCOPED(PK11SlotInfo);
SCOPED(PK11SymKey);