Browse Source

Execute pthread destroy in queue_free in trunk.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1341 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 năm trước cách đây
mục cha
commit
b2a537a90c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      include/queue.h

+ 1 - 0
include/queue.h

@@ -81,6 +81,7 @@ static inline int queue_reinit (struct queue *queue)
 }
 
 static inline void queue_free (struct queue *queue) {
+	pthread_mutex_destroy (&queue->mutex);
 	free (queue->items);
 }