mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 17:44:27 +02:00
ui-plain: fix resource leak: free before return
Coverity-id: 13940 Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
51338f7658
commit
979db79a80
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ static int print_object(const unsigned char *sha1, const char *path)
|
|||
cgit_print_http_headers();
|
||||
html_raw(buf, size);
|
||||
free(mimetype);
|
||||
free(buf);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue