Commit 950a4a905c4d772a32d335f2d3334e02c1dc7a40

Stefan Sperling 2019-07-10T15:22:52

use got_fileindex_free() to free a fileindex structure

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/worktree.c b/lib/worktree.c
index 4fbd3aa..c68ca74 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -1429,7 +1429,7 @@ done:
 	if (err) {
 		free(*fileindex_path);
 		*fileindex_path = NULL;
-		free(*fileindex);
+		got_fileindex_free(*fileindex);
 		*fileindex = NULL;
 	}
 	return err;