Re: [PATCH][RESEND] static code analysis from cppcheck reports:

From
Tomi Valkeinen <hidden>
Date
2015-01-13 13:15:42
Also in
lkml
Reply to
Colin King, 2015-01-12
On 12/01/15 17:27, Colin King wrote:
From: Colin Ian King <redacted>

[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 <redacted>
---
 drivers/video/fbdev/broadsheetfb.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Thanks, I've queued this for 3.19 fbdev fixes.

 Tomi


Attachments

Thread (4 messages) 4 messages, 3 authors, last reply 2015-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help