1
0
Fork 0

video: truetype: Fix a memory leak on error

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>
utp
Simon Glass 2016-02-21 21:10:25 -07:00 committed by Anatolij Gustschin
parent 595af9db24
commit f6e75ba7fe
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ static int console_truetype_putc_xy(struct udevice *dev, uint x, uint y,
}
#endif
default:
free(data);
return -ENOSYS;
}