1
0
mirror of https://github.com/git/git.git synced 2024-11-18 22:23:55 +01:00

line-log: avoid memory leak

Discovered by Coverity.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin 2017-05-04 15:58:01 +02:00 committed by Junio C Hamano
parent bda6e82801
commit 6cf034e7ed

@ -1125,6 +1125,7 @@ static int process_ranges_ordinary_commit(struct rev_info *rev, struct commit *c
changed = process_all_files(&parent_range, rev, &queue, range);
if (parent)
add_line_range(rev, parent, parent_range);
free_line_log_data(parent_range);
return changed;
}