diff options
Diffstat (limited to 'ui-blame.c')
-rw-r--r-- | ui-blame.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui-blame.c b/ui-blame.c index 17e2d60..b118a81 100644 --- a/ui-blame.c +++ b/ui-blame.c | |||
@@ -154,7 +154,7 @@ static void print_object(const unsigned char *sha1, const char *path, | |||
154 | htmlf("<div class='error'>blob size (%ldKB)" | 154 | htmlf("<div class='error'>blob size (%ldKB)" |
155 | " exceeds display size limit (%dKB).</div>", | 155 | " exceeds display size limit (%dKB).</div>", |
156 | size / 1024, ctx.cfg.max_blob_size); | 156 | size / 1024, ctx.cfg.max_blob_size); |
157 | return; | 157 | goto cleanup; |
158 | } | 158 | } |
159 | 159 | ||
160 | html("<table class='blame blob'>\n<tr>\n"); | 160 | html("<table class='blame blob'>\n<tr>\n"); |
@@ -213,6 +213,9 @@ static void print_object(const unsigned char *sha1, const char *path, | |||
213 | html("</tr>\n</table>\n"); | 213 | html("</tr>\n</table>\n"); |
214 | 214 | ||
215 | cgit_print_layout_end(); | 215 | cgit_print_layout_end(); |
216 | |||
217 | cleanup: | ||
218 | free(buf); | ||
216 | } | 219 | } |
217 | 220 | ||
218 | static int walk_tree(const unsigned char *sha1, struct strbuf *base, | 221 | static int walk_tree(const unsigned char *sha1, struct strbuf *base, |