[PATCH 7/8] hdb: unlock hdb database when instance init fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 include/corosync/hdb.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/corosync/hdb.h b/include/corosync/hdb.h
index 88742f9..7d2375e 100644
--- a/include/corosync/hdb.h
+++ b/include/corosync/hdb.h
@@ -161,6 +161,7 @@ static inline int hdb_handle_create (
 
 	instance = (void *)malloc (instance_size);
 	if (instance == 0) {
+		hdb_database_unlock (&handle_database->lock);
 		errno = ENOMEM;
 		return (-1);
 	}
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux