clear lock to zero state if it is destroyed.
This commit is contained in:
parent
8733ff6e11
commit
8e60ce996b
@ -81,8 +81,11 @@ static void
|
||||
_thr_rtld_lock_destroy(void *lock)
|
||||
{
|
||||
int locki;
|
||||
size_t i;
|
||||
|
||||
locki = (struct rtld_lock *)lock - &lock_place[0];
|
||||
for (i = 0; i < sizeof(struct rtld_lock); ++i)
|
||||
((char *)lock)[i] = 0;
|
||||
busy_places &= ~(1 << locki);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user