the repository which powers this website
ui-blob: fix resource leak: free before return
Coverity-id: 13944 Signed-off-by: Christian Hesse <[email protected]>
Christian Hesse 2015-10-11
parent 3080212 · commit 7320bfa
-rw-r--r--ui-blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-blob.c b/ui-blob.c
index 70a671e6..1ded8397 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -171,4 +171,5 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl
ctx.page.filename = path;
cgit_print_http_headers();
html_raw(buf, size);
+ free(buf);
}