Skip to content

Commit b5a135b

Browse files
committed
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
2 parents 1f622bb + 7082da8 commit b5a135b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/commit-graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ static int graph_write(int argc, const char **argv, const char *prefix,
311311
while (strbuf_getline(&buf, stdin) != EOF) {
312312
if (read_one_commit(&commits, progress, buf.buf)) {
313313
result = 1;
314+
stop_progress(&progress);
314315
goto cleanup;
315316
}
316317
}

0 commit comments

Comments
 (0)