neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 3f1ebd3565afa33196dfc3e8584e04564987e33c
parent 4d2a303c3e198c91cb6635eb66fa6f0a6c0277cc
Author: Ferry Huberts <ferry.huberts@pelagic.nl>
Date:   Wed,  9 Mar 2011 08:16:58 +0100

source_filter: fix a memory leak

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>

Diffstat:
Mui-tree.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ui-tree.c b/ui-tree.c @@ -48,6 +48,8 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) cgit_open_filter(ctx.repo->source_filter); html_raw(buf, size); cgit_close_filter(ctx.repo->source_filter); + free(ctx.repo->source_filter->argv[1]); + ctx.repo->source_filter->argv[1] = NULL; html("</code></pre></td></tr></table>\n"); return; }