mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1000548 - Leaking arenas allocated in mozilla::pkix r=keeler
--HG-- extra : rebase_source : 6b0aaef098a4fa4d5749013a332b6b7602640b36
This commit is contained in:
parent
815a36ef4b
commit
2754803080
@ -34,7 +34,14 @@
|
||||
|
||||
namespace mozilla { namespace pkix {
|
||||
|
||||
typedef ScopedPtr<PLArenaPool, PL_FreeArenaPool> 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<PLArenaPool, ArenaFalseCleaner> ScopedPLArenaPool;
|
||||
|
||||
typedef ScopedPtr<CERTCertificate, CERT_DestroyCertificate>
|
||||
ScopedCERTCertificate;
|
||||
|
Loading…
Reference in New Issue
Block a user