Dynamic memory stored in 'xattr_node' allocated through function 'calloc'
at line 98 can be lost at line 111
Dynamic memory stored in 'inode' allocated through function 'calloc'
at line 144 can be lost at line 227
Signed-off-by: taebum81.kim <taebum81.kim@lge.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
ret = dev_write_block(xattr_node, blkaddr);
ASSERT(ret >= 0);
+
+ if (xnid)
+ free(xattr_node);
}
int f2fs_setxattr(struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name,
ret = dev_write_block(inode, ni.blk_addr);
ASSERT(ret >= 0);
exit:
+ free(inode);
free(base_addr);
return error;
}