Explorar o código

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 %!s(int64=19) %!d(string=hai) anos
pai
achega
3ce56d3f8f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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));
 }