Skip to content

Commit

Permalink
Coverity CID #1258575
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Dec 15, 2014
1 parent 7ba34f0 commit d314363
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void rbtree_free(rbtree_t *tree)
#endif
tree->root = NULL;

PTHREAD_MUTEX_UNLOCK(tree);

#ifdef HAVE_PTHREAD_H
if (tree->lock) pthread_mutex_destroy(&tree->mutex);
#endif
Expand Down

0 comments on commit d314363

Please sign in to comment.