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-09 15:55:49 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2015-10-09 16:50:09 +0300
commit979db79a80f1926c677691b68eb22b4852a77b50 (patch)
treea4854058404acfddf73a401dd16b866eecc18d65
parent51338f7658f81ffc120969108ed88d97c1888617 (diff)
ui-plain: fix resource leak: free before return
Coverity-id: 13940 Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ui-plain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-plain.c b/ui-plain.c
index 0dd1a8b..4c73607 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -51,6 +51,7 @@ static int print_object(const unsigned char *sha1, const char *path)
cgit_print_http_headers();
html_raw(buf, size);
free(mimetype);
+ free(buf);
return 1;
}