mirror of
https://git.zx2c4.com/cgit
synced 2025-07-08 17:24:33 +02:00
ui-blob: fix resource leak: free before return
Coverity-id: 13943 Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
08a2b818f2
commit
30802126d4
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ int cgit_print_file(char *path, const char *head, int file_only)
|
||||||
return -1;
|
return -1;
|
||||||
buf[size] = '\0';
|
buf[size] = '\0';
|
||||||
html_raw(buf, size);
|
html_raw(buf, size);
|
||||||
|
free(buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue