Commit 9220560796736289a894b8ec9fd5af7ebfb44f1d

Stefan Sperling 2019-01-04T17:43:04

plug leaks in error path of tog blame

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 0d1a957..b84f94f 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2853,7 +2853,7 @@ cmd_blame(int argc, char *argv[])
 
 	error = got_repo_open(&repo, repo_path);
 	if (error != NULL)
-		return error;
+		goto done;
 
 	error = got_repo_map_path(&in_repo_path, repo, path, 1);
 	if (error != NULL)