mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
release packet buffer after usage
This commit is contained in:
committed by
Xiaokang Wang (Shelikhoo)
parent
1ec1bbffa4
commit
fd763c9bab
@@ -41,5 +41,6 @@ func ExtractAddressFromPacket(data []byte) ([]byte, sysnet.Addr) {
|
||||
Zone: "",
|
||||
}
|
||||
payload := data[int(packetBuf.Len()):]
|
||||
packetBuf.Release()
|
||||
return payload, addr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user