Fix: memory leak on hash table destroy
[userspace-rcu.git] / rculfhash.c
index 2e90d4dfee36106723708a6c0def5c4d5567f998..242a46702e1150c9d5c446c056c50daec243df41 100644 (file)
@@ -1806,6 +1806,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;
This page took 0.023195 seconds and 4 git commands to generate.