about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-10-09 14:55:49 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2015-10-09 15:50:09 +0200
commit979db79a80f1926c677691b68eb22b4852a77b50 (patch)
treea4854058404acfddf73a401dd16b866eecc18d65
parentui-repolist: fix resource leak: free allocation from cgit_currenturl (diff)
downloadcgit-pink-979db79a80f1926c677691b68eb22b4852a77b50.tar.gz
cgit-pink-979db79a80f1926c677691b68eb22b4852a77b50.zip
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;
 }
 
ansi&id=488513a14c5e5a378896d7cf4c2daa0803643367&follow=1'>Perform enter as two moves rather than a loopJune McEnroe 2017-07-31Track tile access countsJune McEnroe 2017-07-31Adjust move speed in clientJune McEnroe 2017-07-31Handle large movesJune McEnroe 2017-07-30Optimize builds for chrootJune McEnroe 2017-07-30Persist bright across color changesJune McEnroe 2017-07-30Add index.htmlJune McEnroe 2017-07-30Add snapshot.shJune McEnroe 2017-07-30Fix termcap patch for background colorsJune McEnroe 2017-07-30Update helpJune McEnroe 2017-07-30Fix help to track colorJune McEnroe 2017-07-30Support background colorsJune McEnroe 2017-07-30Track color only client-sideJune McEnroe 2017-07-30Add ostensible support for background colorsJune McEnroe 2017-07-30Add tile create and access timestampsJune McEnroe 2017-07-30Assert stable struct Tile field offsetsJune McEnroe 2017-07-30Add chroot.shJune McEnroe 2017-07-30Add ` commandJune McEnroe 2017-07-30Add sshd_configJune McEnroe 2017-07-30Add termcap patchJune McEnroe