X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/69f705cf5727cc1f099f6cd6af759f66bfd9a343..7ea35f9f8ecf61ab42be9947aae1176ab6e089bd:/ui-tree.c diff --git a/ui-tree.c b/ui-tree.c index 0b1b531..b1adcc7 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; } @@ -148,13 +150,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, cgit_print_filemode(mode); html("