瀏覽代碼

Remove leak when pthread mutex isn't released

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1335 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 年之前
父節點
當前提交
3ce56d3f8f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/hdb.h

+ 1 - 0
include/hdb.h

@@ -74,6 +74,7 @@ static inline void hdb_destroy (
 	if (handle_database->handles) {
 		free (handle_database->handles);
 	}
+	pthread_mutex_destory (&handle_database->mutex);
 	memset (handle_database, 0, sizeof (struct hdb_handle_database));
 }