[PATCH 20/26] line-log: avoid memory leak
From: Johannes Schindelin <hidden>
Date: 2017-04-26 20:21:35
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Johannes Schindelin <hidden>
Date: 2017-04-26 20:21:35
Subsystem:
the rest · Maintainer:
Linus Torvalds
Discovered by Coverity. Signed-off-by: Johannes Schindelin <redacted> --- line-log.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/line-log.c b/line-log.c
index a23b910471b..19d46e9ea2c 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(parent_range); return changed; }
--
2.12.2.windows.2.800.gede8f145e06