ui-plain: fix resource leak: free before return
Coverity-id: 13940 Signed-off-by: Christian Hesse <mail@eworm.de>
Tento commit je obsažen v:
odevzdal
Jason A. Donenfeld
rodič
51338f7658
revize
979db79a80
@@ -51,6 +51,7 @@ static int print_object(const unsigned char *sha1, const char *path)
|
|||||||
cgit_print_http_headers();
|
cgit_print_http_headers();
|
||||||
html_raw(buf, size);
|
html_raw(buf, size);
|
||||||
free(mimetype);
|
free(mimetype);
|
||||||
|
free(buf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Odkázat v novém úkolu
Zablokovat Uživatele