summaryrefslogtreecommitdiff
path: root/pr/src/misc/prinit.c
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-01-20 04:53:10 +0000
committerwtc%google.com <devnull@localhost>2008-01-20 04:53:10 +0000
commitcc002c4498d2d3c3c2337956d4b7b86e206d6ac1 (patch)
tree63bb895dbd81d28846e96df460cf214c90698768 /pr/src/misc/prinit.c
parent0f322fd3cc279140d05621f8b4a256cad6673d13 (diff)
downloadnspr-hg-cc002c4498d2d3c3c2337956d4b7b86e206d6ac1.tar.gz
Bug 95829: clean up the cached monitor subsystem during NSPR cleanup.
Bug 334285: do not leak the original memory block (and the monitors they point to) when PR_REALLOC fails. Portions of the patch are contributed by Brodie <bmo@jellycan.com> and timeless. r=relyea,nelson Modified files: prinit.c ptthread.c primpl.h prcmon.c
Diffstat (limited to 'pr/src/misc/prinit.c')
-rw-r--r--pr/src/misc/prinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pr/src/misc/prinit.c b/pr/src/misc/prinit.c
index 260eac5b..d101d161 100644
--- a/pr/src/misc/prinit.c
+++ b/pr/src/misc/prinit.c
@@ -452,6 +452,7 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup()
_PR_CleanupCPUs();
#endif
_PR_CleanupThreads();
+ _PR_CleanupCMon();
PR_DestroyLock(_pr_sleeplock);
_pr_sleeplock = NULL;
_PR_CleanupLayerCache();