From 3f1ebd3565afa33196dfc3e8584e04564987e33c Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Wed, 9 Mar 2011 08:16:58 +0100 Subject: source_filter: fix a memory leak Signed-off-by: Ferry Huberts Signed-off-by: Lars Hjemli --- ui-tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui-tree.c b/ui-tree.c index 0b1b531..442b6be 100644 --- 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("\n"); return; } -- cgit v1.2.3-2-gb3c3