fbdev/broadsheetfb: fix memory leak
authorColin Ian King <colin.king@canonical.com>
Mon, 12 Jan 2015 15:27:52 +0000 (15:27 +0000)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 13 Jan 2015 13:13:45 +0000 (15:13 +0200)
commitef6899cdc8608e2f018e590683f04bb04a069704
tree55490e4be0be2e27c8030e27508128d5321e83d6
parentd9e020197d371c90ad56cc4be388fc95e0c08e6f
fbdev/broadsheetfb: fix memory leak

static code analysis from cppcheck reports:

[drivers/video/fbdev/broadsheetfb.c:673]:
  (error) Memory leak: sector_buffer

sector_buffer is not being kfree'd on each call to
broadsheet_spiflash_rewrite_sector(), so free it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/broadsheetfb.c