diff options
author | Christian Hesse | 2015-10-10 16:56:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2015-10-10 21:39:25 +0200 |
commit | 7320bfa893bdb8ff873c3827c3dac1ce0d4034ea (patch) | |
tree | ce013a13b23619f165b37fcff9063cf54742a11e | |
parent | 30802126d48e145191a281a7f43109edfbcf490f (diff) | |
download | cgit-7320bfa893bdb8ff873c3827c3dac1ce0d4034ea.tar.gz cgit-7320bfa893bdb8ff873c3827c3dac1ce0d4034ea.tar.bz2 cgit-7320bfa893bdb8ff873c3827c3dac1ce0d4034ea.zip |
ui-blob: fix resource leak: free before return
Coverity-id: 13944
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | ui-blob.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -171,4 +171,5 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl | |||
171 | ctx.page.filename = path; | 171 | ctx.page.filename = path; |
172 | cgit_print_http_headers(); | 172 | cgit_print_http_headers(); |
173 | html_raw(buf, size); | 173 | html_raw(buf, size); |
174 | free(buf); | ||
174 | } | 175 | } |