1
0
Fork 0
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:
Steffen Vogel 2015-03-21 15:20:22 +01:00
parent cccd0e6957
commit bc2aff818b

View file

@ -31,6 +31,7 @@ void list_destroy(struct list *l)
elm = elm->next;
}
pthread_mutex_unlock(&l->lock);
pthread_mutex_destroy(&l->lock);
}