@@ -2085,7 +2085,6 @@ static void find_alignment(struct scoreboard *sb, int *option)
2085
2085
2086
2086
for (e = sb -> ent ; e ; e = e -> next ) {
2087
2087
struct origin * suspect = e -> suspect ;
2088
- struct commit_info ci ;
2089
2088
int num ;
2090
2089
2091
2090
if (compute_auto_abbrev )
@@ -2096,6 +2095,7 @@ static void find_alignment(struct scoreboard *sb, int *option)
2096
2095
if (longest_file < num )
2097
2096
longest_file = num ;
2098
2097
if (!(suspect -> commit -> object .flags & METAINFO_SHOWN )) {
2098
+ struct commit_info ci ;
2099
2099
suspect -> commit -> object .flags |= METAINFO_SHOWN ;
2100
2100
get_commit_info (suspect -> commit , & ci , 1 );
2101
2101
if (* option & OUTPUT_SHOW_EMAIL )
@@ -2104,6 +2104,7 @@ static void find_alignment(struct scoreboard *sb, int *option)
2104
2104
num = utf8_strwidth (ci .author .buf );
2105
2105
if (longest_author < num )
2106
2106
longest_author = num ;
2107
+ commit_info_destroy (& ci );
2107
2108
}
2108
2109
num = e -> s_lno + e -> num_lines ;
2109
2110
if (longest_src_lines < num )
@@ -2113,8 +2114,6 @@ static void find_alignment(struct scoreboard *sb, int *option)
2113
2114
longest_dst_lines = num ;
2114
2115
if (largest_score < ent_score (sb , e ))
2115
2116
largest_score = ent_score (sb , e );
2116
-
2117
- commit_info_destroy (& ci );
2118
2117
}
2119
2118
max_orig_digits = decimal_width (longest_src_lines );
2120
2119
max_digits = decimal_width (longest_dst_lines );
0 commit comments