diff options
author | Matthias Fuchs <matthias.fuchs@esd-electronics.com> | 2008-04-21 11:19:04 +0200 |
---|---|---|
committer | Rodolfo Giometti <giometti@linux.it> | 2008-04-21 14:05:59 +0200 |
commit | a49e0d177a0749614b316ec847fb623f09c82c07 (patch) | |
tree | 47ec47bc1310a30b52b909c06f9a7b53534b8d5b /drivers | |
parent | dc7746d86d2a3dfe01ab9a70cb427f92adc303c7 (diff) | |
download | u-boot-imx-a49e0d177a0749614b316ec847fb623f09c82c07.zip u-boot-imx-a49e0d177a0749614b316ec847fb623f09c82c07.tar.gz u-boot-imx-a49e0d177a0749614b316ec847fb623f09c82c07.tar.bz2 |
video: Add missing free for logo memory
This patch adds two missing free()s.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/cfb_console.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 4f73067..68b9861 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -849,6 +849,7 @@ int video_display_bitmap (ulong bmp_image, int x, int y) if (!((bmp->header.signature[0] == 'B') && (bmp->header.signature[1] == 'M'))) { printf ("Error: no valid bmp.gz image at %lx\n", bmp_image); + free(dst); return 1; } #else @@ -869,6 +870,10 @@ int video_display_bitmap (ulong bmp_image, int x, int y) if (compression != BMP_BI_RGB) { printf ("Error: compression type %ld not supported\n", compression); +#ifdef CONFIG_VIDEO_BMP_GZIP + if (dst) + free(dst); +#endif return 1; } |