mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix len -> cap
This commit is contained in:
parent
994aecd13c
commit
931c8597ca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user