ui-plain: fix resource leak: free before return

Coverity-id: 13940
Signed-off-by: Christian Hesse <mail@eworm.de>
这个提交包含在:
Christian Hesse 2015-10-09 14:55:49 +02:00 提交者 Jason A. Donenfeld
父节点 51338f7658
当前提交 979db79a80
共有 1 个文件被更改,包括 1 次插入0 次删除

查看文件

@ -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;
}