summaryrefslogtreecommitdiffstats
path: root/libnetdata/avl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libnetdata/avl/avl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetdata/avl/avl.c b/libnetdata/avl/avl.c
index b05b97acb..5a4c1a983 100644
--- a/libnetdata/avl/avl.c
+++ b/libnetdata/avl/avl.c
@@ -372,9 +372,9 @@ void avl_destroy_lock(avl_tree_lock *tree) {
int lock;
#ifdef AVL_LOCK_WITH_MUTEX
- lock = pthread_mutex_destroy(&tree->mutex);
+ lock = netdata_mutex_destroy(&tree->mutex);
#else
- lock = pthread_rwlock_destroy(&tree->rwlock);
+ lock = netdata_rwlock_destroy(&tree->rwlock);
#endif
if(lock != 0)