com_err(program_name, retval,
_("while updating quota limits (%d)"),
qtype);
+ quota_errout:
+ quota_release_context(&qctx);
return 1;
}
}
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)) {
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);