Bug 1053204 - remove redundant close() r=bent

This commit is contained in:
Sotaro Ikeda 2014-08-13 20:57:24 -07:00
parent 9b020d554d
commit 6b37857940

View File

@ -55,12 +55,7 @@ RemoteOpenFileParent::OpenSendCloseDelete()
// Sending a potentially invalid file descriptor is just fine.
unused << Send__delete__(this, fileDescriptor);
if (fileDescriptor.IsValid()) {
// close file now that other process has it open, else we'll leak fds in the
// parent process.
close(fileDescriptor.PlatformHandle());
}
// Current process's file descriptor is closed by FileDescriptor destructor.
#endif // OS_TYPE
return true;