From 240aab35b62bf9769b3dd0b99916eccaed7c79d6 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Wed, 10 Jul 2019 15:30:53 +1000 Subject: Bug 1564727 - RSS PSS SPKI for delegated credentials, r=kjacobs Differential Revision: https://phabricator.services.mozilla.com/D37521 --- cpputil/nss_scoped_ptrs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpputil') diff --git a/cpputil/nss_scoped_ptrs.h b/cpputil/nss_scoped_ptrs.h index 9b1fbb47f..24116b63f 100644 --- a/cpputil/nss_scoped_ptrs.h +++ b/cpputil/nss_scoped_ptrs.h @@ -90,7 +90,8 @@ SCOPED(SECMODModule); struct StackSECItem : public SECItem { StackSECItem() : SECItem({siBuffer, nullptr, 0}) {} - ~StackSECItem() { SECITEM_FreeItem(this, PR_FALSE); } + ~StackSECItem() { Reset(); } + void Reset() { SECITEM_FreeItem(this, PR_FALSE); } }; #endif // nss_scoped_ptrs_h__ -- cgit v1.2.1