Index: uspace/lib/label/src/gpt.c
===================================================================
--- uspace/lib/label/src/gpt.c	(revision 722bb5abe58a0092e2ff954715380133ed8963d4)
+++ uspace/lib/label/src/gpt.c	(revision 8f9c8087039b1242df4ef45ebfc16815cedfcfba)
@@ -919,5 +919,5 @@
 	if (gpt_hdr == NULL) {
 		rc = ENOMEM;
-		goto error;
+		goto exit;
 	}
 
@@ -927,5 +927,5 @@
 		if (rc != EOK) {
 			rc = EIO;
-			goto error;
+			goto exit;
 		}
 
@@ -937,11 +937,12 @@
 		if (rc != EOK) {
 			rc = EIO;
-			goto error;
-		}
-	}
-
+			goto exit;
+		}
+	}
+	
+	rc = EOK;
+	
+exit:
 	free(gpt_hdr);
-	return EOK;
-error:
 	return rc;
 }
