projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595af9d
)
video: truetype: Fix a memory leak on error
author
Simon Glass
<sjg@chromium.org>
Mon, 22 Feb 2016 04:10:25 +0000
(21:10 -0700)
committer
Anatolij Gustschin
<agust@denx.de>
Mon, 22 Feb 2016 13:41:02 +0000
(14:41 +0100)
When the resolution is not supported we should free the memory we don't plan
to use.
Reported-by: Coverity (CID: 135127)
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_truetype.c
patch
|
blob
|
history
diff --git
a/drivers/video/console_truetype.c
b/drivers/video/console_truetype.c
index c249f047f5b21b237a1ac6f2a0ca3b48e08ee89d..e16f95a02ce61f282caa41c4b3c46babb88291d3 100644
(file)
--- a/
drivers/video/console_truetype.c
+++ b/
drivers/video/console_truetype.c
@@
-289,6
+289,7
@@
static int console_truetype_putc_xy(struct udevice *dev, uint x, uint y,
}
#endif
default:
+ free(data);
return -ENOSYS;
}