about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFerry Huberts2011-03-09 08:16:58 +0100
committerLars Hjemli2011-03-26 15:13:35 +0100
commit3f1ebd3565afa33196dfc3e8584e04564987e33c (patch)
tree714a4426c035416af4b4cb47bb90aecd4b3851c6
parentcgitrc.5: tar.xz is a supported snapshot format (diff)
downloadcgit-3f1ebd3565afa33196dfc3e8584e04564987e33c.tar.gz
cgit-3f1ebd3565afa33196dfc3e8584e04564987e33c.zip
source_filter: fix a memory leak
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--ui-tree.c2
1 files changed, 2 insertions, 0 deletions
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)
48 cgit_open_filter(ctx.repo->source_filter); 48 cgit_open_filter(ctx.repo->source_filter);
49 html_raw(buf, size); 49 html_raw(buf, size);
50 cgit_close_filter(ctx.repo->source_filter); 50 cgit_close_filter(ctx.repo->source_filter);
51 free(ctx.repo->source_filter->argv[1]);
52 ctx.repo->source_filter->argv[1] = NULL;
51 html("</code></pre></td></tr></table>\n"); 53 html("</code></pre></td></tr></table>\n");
52 return; 54 return;
53 } 55 }