]> granicus.if.org Git - cgit/commitdiff
ui-plain: fix resource leak: free before return
authorChristian Hesse <mail@eworm.de>
Fri, 9 Oct 2015 12:55:49 +0000 (14:55 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 9 Oct 2015 13:50:09 +0000 (15:50 +0200)
Coverity-id: 13940
Signed-off-by: Christian Hesse <mail@eworm.de>
ui-plain.c

index 0dd1a8b9129b2ffcdc983d300f83e2ab066e6432..4c736072287460a55c7abd83f29bd09ebb00fc0d 100644 (file)
@@ -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;
 }