Commit 2620684109b956e9b51f33d9a5e862fbdbbe8de4

Stefan Sperling 2018-07-13T00:06:40

always close blame in got_blame_incremental()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/blame.c b/lib/blame.c
index 67a5c59..291585b 100644
--- a/lib/blame.c
+++ b/lib/blame.c
@@ -454,7 +454,7 @@ got_blame_incremental(const char *path, struct got_object_id *commit_id,
 
 	err = blame_open(&blame, abspath, commit_id, repo, cb, arg);
 	free(abspath);
-	if (err == NULL)
+	if (blame)
 		blame_close(blame);
 	return err;
 }