Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
line-log: avoid memory leak
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Thu, 4 May 2017 13:58:01 +0000
(15:58 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 8 May 2017 03:18:20 +0000
(12:18 +0900)
Discovered by Coverity.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
bda6e82
)
diff --git
a/line-log.c
b/line-log.c
index a23b910471b6c3195e18aad3cbdf225ae200cca0..b9087814b8ccd0082efc41c617e33e8046ea17d5 100644
(file)
--- 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;
}