Commit 9328d2ed4ab61119f42325dbdfe3665b433739aa

Stefan Sperling 2018-07-13T10:15:35

make tog blame thread close its repo when done

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 74bb49f..588d1b0 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1271,6 +1271,8 @@ blame_thread(void *arg)
 
 	err = got_blame_incremental(ta->path, a->commit_id, ta->repo,
 	    blame_cb, ta->cb_args);
+	got_repo_close(ta->repo);
+	ta->repo = NULL;
 	*ta->complete = 1;
 	if (err)
 		return (void *)err;