File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -2619,19 +2619,16 @@ int write_commit_graph(struct object_directory *odb,
2619
2619
oid_array_clear (& ctx -> oids );
2620
2620
clear_topo_level_slab (& topo_levels );
2621
2621
2622
- if (ctx -> commit_graph_filenames_after ) {
2623
- for (i = 0 ; i < ctx -> num_commit_graphs_after ; i ++ ) {
2624
- free (ctx -> commit_graph_filenames_after [i ]);
2625
- free (ctx -> commit_graph_hash_after [i ]);
2626
- }
2627
-
2628
- for (i = 0 ; i < ctx -> num_commit_graphs_before ; i ++ )
2629
- free (ctx -> commit_graph_filenames_before [i ]);
2622
+ for (i = 0 ; i < ctx -> num_commit_graphs_before ; i ++ )
2623
+ free (ctx -> commit_graph_filenames_before [i ]);
2624
+ free (ctx -> commit_graph_filenames_before );
2630
2625
2631
- free ( ctx -> commit_graph_filenames_after );
2632
- free (ctx -> commit_graph_filenames_before );
2633
- free (ctx -> commit_graph_hash_after );
2626
+ for ( i = 0 ; i < ctx -> num_commit_graphs_after ; i ++ ) {
2627
+ free (ctx -> commit_graph_filenames_after [ i ] );
2628
+ free (ctx -> commit_graph_hash_after [ i ] );
2634
2629
}
2630
+ free (ctx -> commit_graph_filenames_after );
2631
+ free (ctx -> commit_graph_hash_after );
2635
2632
2636
2633
free (ctx );
2637
2634
You can’t perform that action at this time.
0 commit comments