Procházet zdrojové kódy

Fix leak by forward porting a change already in whitetank.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1333 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake před 19 roky
rodič
revize
da4225f83d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      exec/wthread.c

+ 4 - 0
exec/wthread.c

@@ -182,6 +182,10 @@ void worker_thread_group_exit (
 
 	for (i = 0; i < worker_thread_group->threadcount; i++) {
 		pthread_cancel (worker_thread_group->threads[i].thread_id);
+		pthread_mutex_destroy (&worker_thread_group->threads[i].new_work_mutex);
+		pthread_cond_destroy (&worker_thread_group->threads[i].new_work_cond);
+		pthread_mutex_destroy (&worker_thread_group->threads[i].done_work_mutex);
+		pthread_cond_destroy (&worker_thread_group->threads[i].done_work_cond);
 	}
 }
 void worker_thread_group_atsegv (