tftp: Close a resource leak when putting files
Reported by: Coverity CID: 1394842 MFC after: 2 weeks
This commit is contained in:
parent
7b9c5eb0a5
commit
e40369745c
@ -499,6 +499,7 @@ put(int argc, char *argv[])
|
||||
printf("putting %s to %s:%s [%s]\n",
|
||||
cp, hostname, targ, mode);
|
||||
xmitfile(peer, port, fd, targ, mode);
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
/* this assumes the target is a directory */
|
||||
|
Loading…
Reference in New Issue
Block a user