Author: Christian Hesse <mail@eworm.de>
ui-blob: fix resource leak: free before return Coverity-id: 13944 Signed-off-by: Christian Hesse <mail@eworm.de>
ui-blob.c | 1 +
diff --git a/ui-blob.c b/ui-blob.c index 70a671e6ca02b30e100f697994033aecac775ef7..1ded8397f5d59d03cd8ecb17705c0c9f69e5e881 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -171,4 +171,5 @@ } ctx.page.filename = path; cgit_print_http_headers(); html_raw(buf, size); + free(buf); }