mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
unlock mutex before destroying it!
This commit is contained in:
parent
cccd0e6957
commit
bc2aff818b
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ void list_destroy(struct list *l)
|
|||
elm = elm->next;
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&l->lock);
|
||||
pthread_mutex_destroy(&l->lock);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue