Przeglądaj źródła

defect 1066
original 1066 fix introduced new bug found with saftest


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@918 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 lat temu
rodzic
commit
ab525116aa
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      lib/ckpt.c

+ 3 - 3
lib/ckpt.c

@@ -1401,14 +1401,14 @@ saCkptSectionIterationNext (
 
 error_put_unlock:
 	pthread_mutex_unlock (&ckptSectionIterationInstance->response_mutex);
+	if (error != SA_AIS_OK) {
+		free (iteratorSectionIdListEntry);
+	}
 
 error_put_nounlock:
 	saHandleInstancePut (&ckptSectionIterationHandleDatabase, sectionIterationHandle);
 
 error_exit:
-	if (error != SA_AIS_OK) {
-		free (iteratorSectionIdListEntry);
-	}
 	return (error);
 }