about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui-blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-blob.c b/ui-blob.c
index d3c3a10..70a671e 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -99,6 +99,7 @@ int cgit_print_file(char *path, const char *head, int file_only)
 		return -1;
 	buf[size] = '\0';
 	html_raw(buf, size);
+	free(buf);
 	return 0;
 }