]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
video: Add missing free for logo memory
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Mon, 21 Apr 2008 09:19:04 +0000 (11:19 +0200)
committerRodolfo Giometti <giometti@linux.it>
Mon, 21 Apr 2008 12:05:59 +0000 (14:05 +0200)
This patch adds two missing free()s.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
drivers/video/cfb_console.c

index 4f73067251e9152fd74e9e00509789ea1e29b538..68b9861d41ff9042c2db8c76665f789e3be5b829 100644 (file)
@@ -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;
        }