On Mon, Mar 16, 2009 at 3:20 PM, Wan-Teh Chang <w...@google.com> wrote:
>
> As Nelson noted, you also need a PR_Cleanup() call after the
> NSS_Shutdown() call.  Another call you need to make after
> NSS_Shutdown() is PL_ArenaFinish(), which eliminates the
> need to set the NSS_DISABLE_ARENA_FREE_LIST environment
> variable to 1.  So the shutdown sequence should be:
>
>  NSS_Shutdown();
>  PL_ArenaFinish();
>  PR_Cleanup();

Nelson pointed out that  NSS_DISABLE_ARENA_FREE_LIST
serves another purpose when running memory leak tools such
as Purify or valgrind.  So please do both:
- add the PL_ArenaFinish() call after NSS_Shutdown()
- set the environment variable NSS_DISABLE_ARENA_FREE_LIST=1
  when running Purify or valgrind.

Sorry about the confusion.

Wan-Teh
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to