commit 950a4a905c4d772a32d335f2d3334e02c1dc7a40 from: Stefan Sperling date: Wed Jul 10 13:22:52 2019 UTC use got_fileindex_free() to free a fileindex structure commit - 016477fd0e28904c48c579801cd75d6314a848c4 commit + 950a4a905c4d772a32d335f2d3334e02c1dc7a40 blob - 4fbd3aaabfde3b33052fdb193f6bfbe62e442d57 blob + c68ca743bd5ba681fe40b097c08f23d275540824 --- lib/worktree.c +++ 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;