]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-blob.c
ui-blob: fix resource leak: free before return
[ps-cgit] / ui-blob.c
index 70a671e6ca02b30e100f697994033aecac775ef7..1ded8397f5d59d03cd8ecb17705c0c9f69e5e881 100644 (file)
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -171,4 +171,5 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl
        ctx.page.filename = path;
        cgit_print_http_headers();
        html_raw(buf, size);
+       free(buf);
 }