diff options
author | wtc%google.com <devnull@localhost> | 2008-01-20 04:53:10 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-01-20 04:53:10 +0000 |
commit | cc002c4498d2d3c3c2337956d4b7b86e206d6ac1 (patch) | |
tree | 63bb895dbd81d28846e96df460cf214c90698768 /pr/src/pthreads | |
parent | 0f322fd3cc279140d05621f8b4a256cad6673d13 (diff) | |
download | nspr-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/pthreads')
-rw-r--r-- | pr/src/pthreads/ptthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c index 4e03fedf..2d4f6a91 100644 --- a/pr/src/pthreads/ptthread.c +++ b/pr/src/pthreads/ptthread.c @@ -1038,6 +1038,7 @@ PR_IMPLEMENT(PRStatus) PR_Cleanup(void) _PR_CleanupNet(); /* Close all the fd's before calling _PR_CleanupIO */ _PR_CleanupIO(); + _PR_CleanupCMon(); _pt_thread_death(me); rv = pthread_setspecific(pt_book.key, NULL); |