summaryrefslogtreecommitdiff
path: root/security/nss/cpputil/scoped_ptrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/cpputil/scoped_ptrs.h')
-rw-r--r--security/nss/cpputil/scoped_ptrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/nss/cpputil/scoped_ptrs.h b/security/nss/cpputil/scoped_ptrs.h
index 8a0b4f5abe..6ffef4dd3f 100644
--- a/security/nss/cpputil/scoped_ptrs.h
+++ b/security/nss/cpputil/scoped_ptrs.h
@@ -45,6 +45,7 @@ struct ScopedDelete {
void operator()(SEC_PKCS12DecoderContext* dcx) {
SEC_PKCS12DecoderFinish(dcx);
}
+ void operator()(CERTDistNames* names) { CERT_FreeDistNames(names); }
};
template <class T>
@@ -78,6 +79,7 @@ SCOPED(PK11Context);
SCOPED(PK11GenericObject);
SCOPED(SSLResumptionTokenInfo);
SCOPED(SEC_PKCS12DecoderContext);
+SCOPED(CERTDistNames);
#undef SCOPED