summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-06-13 10:02:05 +0800
committerChristian Hesse <mail@eworm.de>2018-06-13 10:32:44 +0200
commit9a7fb67f6a308a2343e8d50a2df07dd11a89d95b (patch)
tree17caf802e52190bb71ce6c5b9e275f5bebd00df0
parent525bc272a31b0945635b33f2a380f12841b124a2 (diff)
downloadcgit-9a7fb67f6a308a2343e8d50a2df07dd11a89d95b.tar.gz
ui-blame: free read_sha1_file() buffer after use
Signed-off-by: Andy Green <andy@warmcat.com>
-rw-r--r--ui-blame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-blame.c b/ui-blame.c
index 17e2d60..a5c7d69 100644
--- a/ui-blame.c
+++ b/ui-blame.c
@@ -206,6 +206,9 @@ static void print_object(const unsigned char *sha1, const char *path,
} else {
html_txt(buf);
}
+
+ free(buf);
+
html("</code></pre>");
html("</div></td>\n");