diff options
author | George Burgess IV <gbiv@google.com> | 2018-05-15 17:54:25 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-15 17:54:25 -0700 |
commit | fd83124c53bed66ba6777c3fcf4639d31ca0591d (patch) | |
tree | 0bc6a328062072f9fe22fdb7e0fbdf5d367e357e /f2fs_utils | |
parent | 7e6377e64f4e13fa8d4b331b670818ed2aedab60 (diff) | |
parent | 9a533b4b5be4d5920262f84438c4859bbd3a63f7 (diff) | |
download | extras-fd83124c53bed66ba6777c3fcf4639d31ca0591d.tar.gz |
Merge "Fix a double-free" am: 98d51d994f
am: 9a533b4b5b
Change-Id: I204235abae1d1f23bc87fd1bf803143e16c300bb
Diffstat (limited to 'f2fs_utils')
-rw-r--r-- | f2fs_utils/f2fs_sparseblock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/f2fs_utils/f2fs_sparseblock.c b/f2fs_utils/f2fs_sparseblock.c index 95268d0e..c77b626c 100644 --- a/f2fs_utils/f2fs_sparseblock.c +++ b/f2fs_utils/f2fs_sparseblock.c @@ -333,6 +333,7 @@ static int gather_sit_info(int fd, struct f2fs_info *info) if (read_structure(fd, address * F2FS_BLKSIZE, &info->sit_blocks[sit_block], sizeof(struct f2fs_sit_block))) { SLOGE("Could not read sit block at block %"PRIu64, address); free(info->sit_blocks); + info->sit_blocks = NULL; return -1; } } |