Просмотр исходного кода

Fix mutex leak on various platforms.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1336 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 лет назад
Родитель
Сommit
d86a47c5c6
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      lib/cfg.c

+ 4 - 0
lib/cfg.c

@@ -323,6 +323,10 @@ openais_cfg_finalize (
 
 	pthread_mutex_unlock (&cfg_instance->dispatch_mutex);
 
+	pthread_mutex_destory (&cfg_instance->response_mutex);
+
+	pthread_mutex_destory (&cfg_instance->dispatch_mutex);
+
 	saHandleDestroy (&cfg_hdb, cfg_handle);
 
 	if (cfg_instance->response_fd != -1) {