summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2017-05-04 15:58:01 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-08 12:18:20 +0900
commit6cf034e7ed3ec0692535416d9d339b60a830bf23 (patch)
tree1490c377284583d998cb44294abde7cffd5499b3
parentreceive-pack: plug memory leak in update() (diff)
downloadtgif-6cf034e7ed3ec0692535416d9d339b60a830bf23.tar.xz
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>
-rw-r--r--line-log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/line-log.c b/line-log.c
index a23b910471..b9087814b8 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;
}