erofs-utils: fix reference leak in erofs_mkfs_build_tree_from_path()
authorGao Xiang <xiang@kernel.org>
Thu, 19 Oct 2023 22:43:28 +0000 (06:43 +0800)
committerGao Xiang <xiang@kernel.org>
Thu, 19 Oct 2023 22:50:53 +0000 (06:50 +0800)
commit8300aaba8e8d6a755718313e7169534f021c8cf2
tree6d8748a8d277bd14d1db96d8b69b88a1ea002b1d
parent8cbc205185a18b9510f4c1fbd54957354f696321
erofs-utils: fix reference leak in erofs_mkfs_build_tree_from_path()

commit 8cbc205185a1 ("erofs-utils: mkfs: fix corrupted directories
with hardlinks") introduced a reference leak although it has no real
impact to users.  Fix it now.

Signed-off-by: Gao Xiang <xiang@kernel.org>
Link: https://lore.kernel.org/r/20231019224328.26015-1-xiang@kernel.org
lib/inode.c