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:
parent
a97cff3c13
commit
99b5ccae7c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user