Skip to content

Commit

Permalink
Fix bogus destroy of a RW lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed May 25, 2016
1 parent 39592dc commit 83f3945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fraud_detection/frd_hashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void free_hash_map(hash_map_t* hm, void (*value_destroy_func)(void *))
lock_start_write(hm->buckets[i].lock);
map_destroy(hm->buckets[i].items, value_destroy_func);
lock_stop_write(hm->buckets[i].lock);
lock_destroy(hm->buckets[i].lock);
lock_destroy_rw(hm->buckets[i].lock);
}
shm_free(hm->buckets);
}
Expand Down

0 comments on commit 83f3945

Please sign in to comment.