summaryrefslogtreecommitdiff
path: root/misc/tune2fs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-01-23 01:05:43 -0500
committerTheodore Ts'o <tytso@mit.edu>2021-01-23 01:05:43 -0500
commit45fa214d623e4e4a8844535a7e80dece63f121c8 (patch)
tree3e2b805aff30afa886d0a73e8c9f6de196ac27b7 /misc/tune2fs.c
parent26cb9f7db66feef485c377ed10ae1ec2d2003c5a (diff)
parentb3f288ed9fbb1b12c67fd00860f286a800427125 (diff)
downloade2fsprogs-45fa214d623e4e4a8844535a7e80dece63f121c8.tar.gz
Merge branch 'maint' into next
Diffstat (limited to 'misc/tune2fs.c')
-rw-r--r--misc/tune2fs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index f3bfb047..e660309f 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -1670,6 +1670,8 @@ static int handle_quota_options(ext2_filsys fs)
com_err(program_name, retval,
_("while updating quota limits (%d)"),
qtype);
+ quota_errout:
+ quota_release_context(&qctx);
return 1;
}
}
@@ -1678,7 +1680,7 @@ static int handle_quota_options(ext2_filsys fs)
com_err(program_name, retval,
_("while writing quota file (%d)"),
qtype);
- return 1;
+ goto quota_errout;
}
/* Enable Quota feature if one of quota enabled */
if (!ext2fs_has_feature_quota(fs->super)) {
@@ -1696,7 +1698,7 @@ static int handle_quota_options(ext2_filsys fs)
com_err(program_name, retval,
_("while removing quota file (%d)"),
qtype);
- return 1;
+ goto quota_errout;
}
if (qtype == PRJQUOTA) {
ext2fs_clear_feature_project(fs->super);