summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/nss_scoped_ptrs.h3
1 files changed, 2 insertions, 1 deletions
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__