mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05: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