Don't zero fd_nfiles during fdp destruction.

Code trying to take a look has to check fd_refcnt and it is 0 by that time.

This is a follow up to r268505, without this the code would leak memory for
tables bigger than the default.

MFC after:	1 week
This commit is contained in:
mjg 2014-07-10 21:05:45 +00:00
parent a97cff3c13
commit 99b5ccae7c

View File

@ -2034,8 +2034,6 @@ fdescfree(struct thread *td)
return;
}
fdp->fd_nfiles = 0;
cdir = fdp->fd_cdir;
fdp->fd_cdir = NULL;
rdir = fdp->fd_rdir;