fsck.f2fs: deal with realloc size and realloc failure
fsck.f2fs: deal with realloc size and realloc failure

Deal with realloc failure to avoid memory leak and memory free,
and assert realloc size to avoid double free for tree_mark.

Change-Id: I39fef4d4d03eeb8334f5d4899701a2d1a3852588
Signed-off-by: Xue Liu <7a8409a5ff413510d343df4552e688f657635449@huawei.com>
Signed-off-by: Jaegeuk Kim <71255387a32c360dfbe6dfb7aaeb123bf1dc8cb6@kernel.org>

PAC-ROM/android_external_f2fs-tools,blastagator/cm_external_f2fs-tools,PAC-ROM/android_external_f2fs-tools,blastagator/cm_external_f2fs-tools