summaryrefslogtreecommitdiff
path: root/com32/lib/sys
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-15 21:27:59 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-15 21:27:59 +0000
commitc6ce504b8b79729a4e0acc2bebc5e497e4098e60 (patch)
tree6520df083baffbc3ff354613c04a4f38d455df8b /com32/lib/sys
parent3da9e71f9ffa0ca968ccfcf26d536908d198ef5c (diff)
downloadsyslinux-c6ce504b8b79729a4e0acc2bebc5e497e4098e60.tar.gz
vesa: Fix double close() bug in vesacon_load_background()
We always call fclose() on 'fp' if fopen() was successful, so delete the extraneous fclose() call in read_jpeg_file(). Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/lib/sys')
-rw-r--r--com32/lib/sys/vesa/background.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/com32/lib/sys/vesa/background.c b/com32/lib/sys/vesa/background.c
index 93577461..15e90895 100644
--- a/com32/lib/sys/vesa/background.c
+++ b/com32/lib/sys/vesa/background.c
@@ -205,7 +205,6 @@ static int read_jpeg_file(FILE * fp, uint8_t * header, int len)
unsigned int bytes_per_row[1];
rv = floadfile(fp, &jpeg_file, &length_of_file, header, len);
- fclose(fp);
if (rv)
goto err;