commit | 9d8cd8c461136d2a2c4bf0879a792c227665b31c | [log] [tgz] |
---|---|---|
author | Andreas Dilger <adilger@dilger.ca> | Tue May 20 16:30:35 2014 -0600 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu May 22 17:54:36 2014 -0400 |
tree | e938f382bf73b2e7ae32abd520e1d08236f3b949 | |
parent | 90c5b4c9de8ea43e0994cc3a07cdc4c4c777623c [diff] |
debugfs: fix filehandle leak in copy_file() Fix a file handle leak for the target file in copy_file() when error handlers return without closing the file. Instead, clean up at the end of the function to handle cleanup in normal and error cases. Minor other code style cleanups. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>