diff --git a/security/pkix/include/pkix/pkixtypes.h b/security/pkix/include/pkix/pkixtypes.h index 82bf507d299..55461db07fe 100644 --- a/security/pkix/include/pkix/pkixtypes.h +++ b/security/pkix/include/pkix/pkixtypes.h @@ -34,7 +34,14 @@ namespace mozilla { namespace pkix { -typedef ScopedPtr ScopedPLArenaPool; +inline void +ArenaFalseCleaner(PLArenaPool *arena) { + // PL_FreeArenaPool can't be used because it doesn't actually free the + // memory, which doesn't work well with memory analysis tools + return PORT_FreeArena(arena, PR_FALSE); +} + +typedef ScopedPtr ScopedPLArenaPool; typedef ScopedPtr ScopedCERTCertificate;