commit | 556c9f86b21f3ecc073f0c4c9bfa79764b80dcfa | [log] [tgz] |
---|---|---|
author | jseward <jseward@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Jan 02 11:39:06 2004 +0000 |
committer | jseward <jseward@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Fri Jan 02 11:39:06 2004 +0000 |
tree | 2d8ce9532ec6d91449cc35fc81aa2f4daf04c149 | |
parent | c9b365507e9bd5d500476e3e83f4d30f9c68a351 [diff] |
(David Lee, <david.lee@teracruz.com>) This patch fixes a semaphore leak within valgrind. If your application dynamically allocates/releases semaphores, you will very quickly run out. Also, as a nice side effect, it implements sem_destroy properly. (me) Protect sem_getvalue with a lock/unlock of the semaphore's mutex, like the other routines do. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2153 a5019735-40e9-0310-863c-91ae7b9d1cf9