(lwp_rwlock_destroy): Plug memory leak.
This commit is contained in:
parent
3db0e2eb15
commit
3340fdf7f5
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ lwp_rwlock_destroy(struct lwp_rwlock *rwlock)
|
||||||
{
|
{
|
||||||
if (CANT_HAPPEN(rwlock->count))
|
if (CANT_HAPPEN(rwlock->count))
|
||||||
return;
|
return;
|
||||||
|
free(rwlock->name);
|
||||||
free(rwlock);
|
free(rwlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue