From ab525116aa9f64484a1ab3ae39f26b6bfe4e45e3 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 10 Feb 2006 22:38:43 +0000 Subject: [PATCH] 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 --- lib/ckpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ckpt.c b/lib/ckpt.c index 61efe0aa..991b7dbb 100644 --- a/lib/ckpt.c +++ b/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); }