Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-10-10 17:56:23 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2015-10-10 22:39:25 +0300
commit7320bfa893bdb8ff873c3827c3dac1ce0d4034ea (patch)
treece013a13b23619f165b37fcff9063cf54742a11e
parent30802126d48e145191a281a7f43109edfbcf490f (diff)
ui-blob: fix resource leak: free before return
Coverity-id: 13944 Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ui-blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-blob.c b/ui-blob.c
index 70a671e..1ded839 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);
}