mirror of
https://git.zx2c4.com/cgit
synced 2025-07-04 07:14:34 +02:00
ui-blob: fix resource leak: free before return
Coverity-id: 13944 Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
30802126d4
commit
7320bfa893
1 changed files with 1 additions and 0 deletions
|
@ -171,4 +171,5 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl
|
||||||
ctx.page.filename = path;
|
ctx.page.filename = path;
|
||||||
cgit_print_http_headers();
|
cgit_print_http_headers();
|
||||||
html_raw(buf, size);
|
html_raw(buf, size);
|
||||||
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue