]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
debugfs: don't leak fd when calling dump_file
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Dec 2013 17:50:58 +0000 (12:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Dec 2013 17:51:01 +0000 (12:51 -0500)
commitddbe78528f664a43c447e5ffeb0b89fe9fed515d
treeb930581aab336374d94d3bde1a135e16f6847933
parent56fa48879641603f2a3814fbe130ab2a29dcf411
debugfs: don't leak fd when calling dump_file

The caller of dump_file provides a fd to write to, so the caller
should also dispose of the fd.  Also, the fd never gets closed if
preserve=1.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/dump.c