mirror of
https://git.zx2c4.com/cgit/
synced 2024-11-04 06:00:44 +00:00
source_filter: fix a memory leak
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
4d2a303c3e
commit
3f1ebd3565
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user