Merge branch 'ly/commit-graph-graph-write-leakfix'

A memory-leak in an error code path has been plugged.

* ly/commit-graph-graph-write-leakfix:
  commit-graph: fix start_delayed_progress() leak
maint
Junio C Hamano 2025-06-17 10:44:41 -07:00
commit b5a135b1f7
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ static int graph_write(int argc, const char **argv, const char *prefix,
while (strbuf_getline(&buf, stdin) != EOF) {
if (read_one_commit(&commits, progress, buf.buf)) {
result = 1;
stop_progress(&progress);
goto cleanup;
}
}