diff options
author | Andreas Schneider <asn@samba.org> | 2011-01-19 23:15:21 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-27 00:12:47 +0100 |
commit | efde1d870b6a8c2d5461d9ae6cab5d3f2cbffb83 (patch) | |
tree | 210e66a69771640a564d65bc9a9515049c952a15 | |
parent | 4fc75c755d0b20ba4f4e1c42471a0355fd85990d (diff) | |
download | samba-efde1d870b6a8c2d5461d9ae6cab5d3f2cbffb83.tar.gz samba-efde1d870b6a8c2d5461d9ae6cab5d3f2cbffb83.tar.bz2 samba-efde1d870b6a8c2d5461d9ae6cab5d3f2cbffb83.zip |
s3-utils: Fixed a resource leak in net_afs.
s3-utils: Fixed a resource leak in net_afs.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 27 00:12:47 CET 2011 on sn-devel-104
-rw-r--r-- | source3/utils/net_afs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_afs.c b/source3/utils/net_afs.c index 26259c12c0..f6b2b2db8a 100644 --- a/source3/utils/net_afs.c +++ b/source3/utils/net_afs.c @@ -51,8 +51,10 @@ int net_afs_key(struct net_context *c, int argc, const char **argv) if (read(fd, &keyfile, sizeof(keyfile)) != sizeof(keyfile)) { d_fprintf(stderr, _("Could not read keyfile\n")); + close(fd); return -1; } + close(fd); if (!secrets_store_afs_keyfile(argv[1], &keyfile)) { d_fprintf(stderr, _("Could not write keyfile to secrets.tdb\n")); |