diff options
author | Yasushi SHOJI <yashi@atmark-techno.com> | 2005-08-21 16:14:16 +0900 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-21 03:48:33 -0700 |
commit | 90a734dc7f37a7bd1f3beec4d33acad559360f6c (patch) | |
tree | 34b0a955c4a5e14ab4687b4762f8dd06e04e5111 /diff.c | |
parent | d57306c7945becfba70d3139af0a3a8f525a6bb5 (diff) | |
download | git-90a734dc7f37a7bd1f3beec4d33acad559360f6c.tar.gz |
[PATCH] possible memory leak in diff.c::diff_free_filepair()
Here is a patch to fix the problem in the simplest way.
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1010,9 +1010,8 @@ void diff_flush(int diff_output_style, int line_termination) diff_flush_name(p, line_termination); break; } - } - for (i = 0; i < q->nr; i++) diff_free_filepair(q->queue[i]); + } free(q->queue); q->queue = NULL; q->nr = q->alloc = 0; |