Try to avoid memory leak in tcpd
This commit is contained in:
parent
875db86f30
commit
2095de83e8
|
@ -604,6 +604,8 @@ impl SchemeMut for Tcpd {
|
|||
let closed = {
|
||||
let mut handle = self.handles.get_mut(&file).ok_or(Error::new(EBADF))?;
|
||||
|
||||
handle.data.clear();
|
||||
|
||||
match handle.state {
|
||||
State::SynReceived | State::Established => {
|
||||
handle.state = State::FinWait1;
|
||||
|
|
Loading…
Reference in a new issue