diff options
author | Petr Písař <ppisar@redhat.com> | 2018-08-23 11:09:10 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-03-21 13:42:51 +0100 |
commit | d239ac963a925b9dee067d549ff2838b7fc07cd4 (patch) | |
tree | f9a49df7769174ff5b548632c3d86ed7957b470c | |
parent | e62c91309dd3687cede46f2f773feecb394b44c0 (diff) | |
download | linuxquota-d239ac963a925b9dee067d549ff2838b7fc07cd4.tar.gz |
convertquota: Fix a file descriptor leak in convert_endian()
Signed-off-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | convertquota.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/convertquota.c b/convertquota.c index d913e05..6c8a553 100644 --- a/convertquota.c +++ b/convertquota.c @@ -363,6 +363,7 @@ static int convert_endian(int type, struct mount_entry *mnt) } ret = endian_scan_structures(ofd, type); end_io(qn); + close(ofd); if (ret < 0) return ret; |