diff options
Diffstat (limited to 'security/nss/cpputil/scoped_ptrs_util.h')
-rw-r--r-- | security/nss/cpputil/scoped_ptrs_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/nss/cpputil/scoped_ptrs_util.h b/security/nss/cpputil/scoped_ptrs_util.h index 2dbf34e1d..d0a42ee0b 100644 --- a/security/nss/cpputil/scoped_ptrs_util.h +++ b/security/nss/cpputil/scoped_ptrs_util.h @@ -33,7 +33,13 @@ struct ScopedMaybeDelete { SCOPED(SECAlgorithmID); SCOPED(SECItem); SCOPED(PK11URI); +SCOPED(PLArenaPool); #undef SCOPED +struct StackSECItem : public SECItem { + StackSECItem() : SECItem({siBuffer, nullptr, 0}) {} + ~StackSECItem() { SECITEM_FreeItem(this, PR_FALSE); } +}; + #endif // scoped_ptrs_util_h__ |