diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-05-04 15:58:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 12:18:20 +0900 |
commit | 6cf034e7ed3ec0692535416d9d339b60a830bf23 (patch) | |
tree | 1490c377284583d998cb44294abde7cffd5499b3 | |
parent | receive-pack: plug memory leak in update() (diff) | |
download | tgif-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.c | 1 |
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; } |