Fix file descriptor reference counting in accept()

Update #3132.
This commit is contained in:
Sebastian Huber 2017-11-15 13:24:29 +01:00
parent 06f06d4fdf
commit b03a1c0b59

View File

@ -432,7 +432,9 @@ accept1(td, s, uname, anamelen, flags)
sizeof(namelen));
if (error != 0)
fdclose(td, fp, td->td_retval[0]);
#ifndef __rtems__
fdrop(fp, td);
#endif /* __rtems__ */
free(name, M_SONAME);
return (error);
}