diff options
author | Christian Hesse | 2015-10-09 14:55:49 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2015-10-09 15:50:09 +0200 |
commit | 979db79a80f1926c677691b68eb22b4852a77b50 (patch) | |
tree | a4854058404acfddf73a401dd16b866eecc18d65 /ui-plain.c | |
parent | 51338f7658f81ffc120969108ed88d97c1888617 (diff) | |
download | cgit-979db79a80f1926c677691b68eb22b4852a77b50.tar.gz cgit-979db79a80f1926c677691b68eb22b4852a77b50.tar.bz2 cgit-979db79a80f1926c677691b68eb22b4852a77b50.zip |
ui-plain: fix resource leak: free before return
Coverity-id: 13940
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-plain.c')
-rw-r--r-- | ui-plain.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ static int print_object(const unsigned char *sha1, const char *path) | |||
51 | cgit_print_http_headers(); | 51 | cgit_print_http_headers(); |
52 | html_raw(buf, size); | 52 | html_raw(buf, size); |
53 | free(mimetype); | 53 | free(mimetype); |
54 | free(buf); | ||
54 | return 1; | 55 | return 1; |
55 | } | 56 | } |
56 | 57 | ||