mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-09-23 10:44:03 -04:00
fix len -> cap
This commit is contained in:
@@ -207,7 +207,7 @@ func NewBytes(size uint32) []byte {
|
||||
}
|
||||
|
||||
func FreeBytes(b []byte) {
|
||||
size := len(b)
|
||||
size := cap(b)
|
||||
switch {
|
||||
case size >= 128*1024:
|
||||
pool128k.Put(b)
|
||||
|
Reference in New Issue
Block a user