Commit 631179de38cd91f5e53311c37386314fa2504ccd

Christian Weisgerber 2020-07-31T14:10:44

Fix missing block grouping. ok tracey stsp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/libexec/got-fetch-pack/got-fetch-pack.c b/libexec/got-fetch-pack/got-fetch-pack.c
index 8f12b8a..2f846ca 100644
--- a/libexec/got-fetch-pack/got-fetch-pack.c
+++ b/libexec/got-fetch-pack/got-fetch-pack.c
@@ -315,9 +315,10 @@ tokenize_refline(char **tokens, char *line, int len, int maxtokens)
 done:
 	if (err) {
 		int j;
-		for (j = 0; j < i; j++)
+		for (j = 0; j < i; j++) {
 			free(tokens[j]);
 			tokens[j] = NULL;
+		}
 	}
 	return err;
 }