commit 246e1c78b7c0d1b05a03e5801ffd25d90014f4a4 from: Stefan Sperling date: Thu Nov 08 18:09:27 2018 UTC prevent free of bogus pointers via fetch_commits_from_open_branches() commit - 5e50c36a5afdc25a5118410cbfa5f8e89c800f3a commit + 246e1c78b7c0d1b05a03e5801ffd25d90014f4a4 blob - 845e5be5f5dfcfc507ff3ee24b71d2873b0e0408 blob + f663cec7fee07256ea7b0f7355b62ceef29f6843 --- lib/commit_graph.c +++ lib/commit_graph.c @@ -581,7 +581,7 @@ fetch_commits_from_open_branches(int *nfetched, *changed_id = commit_id; } done: - for (i = 0; i < ntips; i++) + for (i = 0; i < arg.ntips; i++) got_object_commit_close(arg.tips[i].commit); (*nfetched) = arg.ntips; return err;