Re: [PATCH] mtd: fix possible memory leak in logfs_mtd_can_write_buf()

2012-09-02 Thread prasad
On Sun, Sep 02, 2012 at 10:19:06PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > buf has been allocated in this function and should be > freed before leaving from the error handling case. > > spatch with a semantic match is used to found this problem. > (http://coccinelle.lip6.fr/) > >

[PATCH] mtd: fix possible memory leak in logfs_mtd_can_write_buf()

2012-09-02 Thread Wei Yongjun
From: Wei Yongjun buf has been allocated in this function and should be freed before leaving from the error handling case. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- fs/logfs/dev_mtd.c | 2 +- 1 file changed, 1

[PATCH] mtd: fix possible memory leak in logfs_mtd_can_write_buf()

2012-09-02 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn buf has been allocated in this function and should be freed before leaving from the error handling case. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun

Re: [PATCH] mtd: fix possible memory leak in logfs_mtd_can_write_buf()

2012-09-02 Thread prasad
On Sun, Sep 02, 2012 at 10:19:06PM +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn buf has been allocated in this function and should be freed before leaving from the error handling case. spatch with a semantic match is used to found this problem.