video: truetype: Fix a memory leak on error
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:10:25 +0000 (21:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Mon, 22 Feb 2016 13:41:02 +0000 (14:41 +0100)
commitf6e75ba7fe220fdcf77c50d23a4f31ef828f75f5
treee8f970f7317cdd0108af94e2d74fc425f50ee224
parent595af9db2422fa5ae734cfe615415b17a5098f34
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>
drivers/video/console_truetype.c