]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-tree.c
Add sort parameter to pager of repo list
[cgit.git] / ui-tree.c
index 0b1b531494c4f24c059d4b80cf7d6faaf8612d0d..442b6be53d2c6ba6f7f4c17cd53d12da198c6f5d 100644 (file)
--- 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;
        }