mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 01:27:03 -05:00
release used buffer in packet connection wrapper
This commit is contained in:
parent
35db419556
commit
ddf25beec1
@ -132,6 +132,7 @@ func (pc *packetConnWrapper) Read(p []byte) (n int, err error) {
|
||||
}
|
||||
result := AttachAddressToPacket(recbuf.Bytes()[0:n], addr)
|
||||
n = copy(p, result)
|
||||
recbuf.Release()
|
||||
return n, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user