Re: [PATCH] erofs: fix memleak of node's shared xattr array

2019-02-13 Thread Gao Xiang
Hi Sheng, On 2019/2/14 17:37, Sheng Yong wrote: > If it fails to read a shared xattr page, the node's shared xattr array node -> inode since erofs doesn't have 'node' concept like f2fs... > is not freed. The next time the node's xattr is accessed, the previously > allocated array is leaked. >

[PATCH] erofs: fix memleak of node's shared xattr array

2019-02-13 Thread Sheng Yong
If it fails to read a shared xattr page, the node's shared xattr array is not freed. The next time the node's xattr is accessed, the previously allocated array is leaked. Signed-off-by: Sheng Yong --- drivers/staging/erofs/xattr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff -