]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In threaded processes, destroy the mutex atexit_mutex when we've
authorcperciva <cperciva@FreeBSD.org>
Sun, 13 Jun 2010 01:13:36 +0000 (01:13 +0000)
committercperciva <cperciva@FreeBSD.org>
Sun, 13 Jun 2010 01:13:36 +0000 (01:13 +0000)
commit1340d134ef60ce33037e39a0ce368cf1c940a2d7
tree4fc696a236b0b4050f7803130f79d9657bdf0461
parenta3db6f34d740490067775fb13808463a2ccbf11b
In threaded processes, destroy the mutex atexit_mutex when we've
finished using it.  This allows the mutex's allocated memory to be
freed.

This is one sense a rather silly change, since at this point we're
less than a microsecond away from calling _exit; but fixing this
memory leak is likely to make life easier for anyone trying to
track down other memory leaks.
lib/libc/stdlib/atexit.c