summaryrefslogtreecommitdiff
path: root/line-log.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-05-04 13:58:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-08 03:18:20 (GMT)
commit6cf034e7ed3ec0692535416d9d339b60a830bf23 (patch)
tree1490c377284583d998cb44294abde7cffd5499b3 /line-log.c
parentbda6e82801e3c01d51634e6c722783295fd079ae (diff)
downloadgit-6cf034e7ed3ec0692535416d9d339b60a830bf23.zip
git-6cf034e7ed3ec0692535416d9d339b60a830bf23.tar.gz
git-6cf034e7ed3ec0692535416d9d339b60a830bf23.tar.bz2
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>
Diffstat (limited to 'line-log.c')
-rw-r--r--line-log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/line-log.c b/line-log.c
index a23b910..b908781 100644
--- a/line-log.c
+++ b/line-log.c
@@ -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;
}