aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-09-30 18:45:00 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-09-30 18:45:00 +0200
commitd95204ad78b7bfd0a7ad404f69a3a6c932d57db6 (patch)
tree6c2c671931ffe5fef137054fdf91874204af1704
parentf8445411d81e663baf97d058256667073ba8bc78 (diff)
downloadlibrb-d95204ad78b7bfd0a7ad404f69a3a6c932d57db6.tar.gz
librb-d95204ad78b7bfd0a7ad404f69a3a6c932d57db6.tar.bz2
librb-d95204ad78b7bfd0a7ad404f69a3a6c932d57db6.zip
fix: mutex not being destroyed after rb_destroy()
-rw-r--r--rb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rb.c b/rb.c
index 758b119..10b090e 100644
--- a/rb.c
+++ b/rb.c
@@ -1919,6 +1919,8 @@ static int rb_cleanup_p
pthread_cond_destroy(&rb->wait_data);
pthread_cond_destroy(&rb->wait_room);
pthread_mutex_destroy(&rb->lock);
+ pthread_mutex_destroy(&rb->rlock);
+ pthread_mutex_destroy(&rb->wlock);
return 0;
}