video: freetype: Fix a memory leak with a bad parameter
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:10:26 +0000 (21:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Mon, 22 Feb 2016 13:41:22 +0000 (14:41 +0100)
commitd5b9d11cb61c9b50cc799fc00b4e7c3a26004538
tree06b227f809ab680cf4dbe28f24cc2b524a66c797
parentf6e75ba7fe220fdcf77c50d23a4f31ef828f75f5
video: freetype: Fix a memory leak with a bad parameter

Make sure to free memory used when the scale facture is incorrect.

Reported-by: Coverity (CID: 24068)
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/stb_truetype.h