Coverity ID: 37: Resource Leak
Coverity ID: 38: Resource Leak
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2007-03-28 Theodore Tso <tytso@mit.edu>
- * pass1.c (check_ext_attr), unix.c (parse_extended_opts): Fix
- memory leak
+ * pass1.c (e2fsck_pass1, check_ext_attr),
+ unix.c (parse_extended_opts): Fix memory leak
2007-03-21 Theodore Tso <tytso@mit.edu>
if (pctx.errcode) {
fix_problem(ctx, PR_1_ALLOCATE_DBCOUNT, &pctx);
ctx->flags |= E2F_FLAG_ABORT;
+ ext2fs_free_mem(&inode);
return;
}
if (pctx.errcode) {
fix_problem(ctx, PR_1_ISCAN_ERROR, &pctx);
ctx->flags |= E2F_FLAG_ABORT;
+ ext2fs_free_mem(&block_buf);
+ ext2fs_free_mem(&inode);
return;
}
ext2fs_inode_scan_flags(scan, EXT2_SF_SKIP_MISSING_ITABLE, 0);