mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 19:41:46 +00:00
video: Add missing free for logo memory
This patch adds two missing free()s. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
This commit is contained in:
parent
dc7746d86d
commit
a49e0d177a
1 changed files with 5 additions and 0 deletions
|
@ -849,6 +849,7 @@ int video_display_bitmap (ulong bmp_image, int x, int y)
|
||||||
if (!((bmp->header.signature[0] == 'B') &&
|
if (!((bmp->header.signature[0] == 'B') &&
|
||||||
(bmp->header.signature[1] == 'M'))) {
|
(bmp->header.signature[1] == 'M'))) {
|
||||||
printf ("Error: no valid bmp.gz image at %lx\n", bmp_image);
|
printf ("Error: no valid bmp.gz image at %lx\n", bmp_image);
|
||||||
|
free(dst);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -869,6 +870,10 @@ int video_display_bitmap (ulong bmp_image, int x, int y)
|
||||||
if (compression != BMP_BI_RGB) {
|
if (compression != BMP_BI_RGB) {
|
||||||
printf ("Error: compression type %ld not supported\n",
|
printf ("Error: compression type %ld not supported\n",
|
||||||
compression);
|
compression);
|
||||||
|
#ifdef CONFIG_VIDEO_BMP_GZIP
|
||||||
|
if (dst)
|
||||||
|
free(dst);
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue