We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 650a24c commit 76b19adCopy full SHA for 76b19ad
f2fs_utils/f2fs_sparseblock.c
@@ -388,6 +388,13 @@ struct f2fs_info *generate_f2fs_info(int fd)
388
return NULL;
389
}
390
391
+ info->journal = calloc(1, sizeof(struct f2fs_journal));
392
+ if (!info->journal) {
393
+ SLOGE("Out of memory!");
394
+ free(info);
395
+ return NULL;
396
+ }
397
+
398
sb = malloc(sizeof(*sb));
399
if(!sb) {
400
SLOGE("Out of memory!");
@@ -463,6 +470,9 @@ void free_f2fs_info(struct f2fs_info *info)
463
470
464
471
free(info->sit_sums);
465
472
info->sit_sums = NULL;
473
474
+ free(info->journal);
475
+ info->journal = NULL;
466
476
467
477
free(info);
468
478
0 commit comments