Whamcloud - gitweb
resize2fs: close the file system on errors or early exits
authorTheodore Ts'o <tytso@mit.edu>
Sun, 7 Mar 2021 04:54:33 +0000 (23:54 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 7 Mar 2021 04:54:33 +0000 (23:54 -0500)
commit772734c41357cc2ac565659365581763bc48ed21
tree27547ca3927054fa47aabc469784bd3a43514bb5
parent3042900ae8fd8292266d615020d6c0e0cea0ea6e
resize2fs: close the file system on errors or early exits

When resize2fs exits early, perhaps because of an error, we should
free the file system so that if MMP is in use, the MMP block is reset.
This also releases the memory to avoid memory leak reports.

Addresses-Debian-Bug: #984472
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c