X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=d7d107f3788f3a70cec57be5380ae1ff1bbff173;hp=3e7873171733a100d83ea1433c54080cf1b1e791;hb=59629f09c1ee8395b1e22797a6924703e825e345;hpb=2350bf7b3f3c4581493b187988a92b8d871471ba;ds=sidebyside diff --git a/rculfhash.c b/rculfhash.c index 3e78731..d7d107f 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1799,6 +1799,9 @@ int cds_lfht_destroy(struct cds_lfht *ht, pthread_attr_t **attr) free_split_items_count(ht); if (attr) *attr = ht->resize_attr; + ret = pthread_mutex_destroy(&ht->resize_mutex); + if (ret) + ret = -EBUSY; poison_free(ht); end: return ret;