diff options
author | Christian Hesse | 2015-10-10 16:56:24 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2015-10-10 21:38:57 +0200 |
commit | 30802126d48e145191a281a7f43109edfbcf490f (patch) | |
tree | 3246c594ad2b5a07706106a8d58a0fe90f0fe6b2 /ui-blob.c | |
parent | 08a2b818f2bd3221a1685c28c62408d57b0993a7 (diff) | |
download | cgit-30802126d48e145191a281a7f43109edfbcf490f.tar cgit-30802126d48e145191a281a7f43109edfbcf490f.tar.gz cgit-30802126d48e145191a281a7f43109edfbcf490f.zip |
ui-blob: fix resource leak: free before return
Coverity-id: 13943
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-blob.c')
-rw-r--r-- | ui-blob.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -99,6 +99,7 @@ int cgit_print_file(char *path, const char *head, int file_only) return -1; buf[size] = '\0'; html_raw(buf, size); + free(buf); return 0; } |