mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -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) {
|
func FreeBytes(b []byte) {
|
||||||
size := len(b)
|
size := cap(b)
|
||||||
switch {
|
switch {
|
||||||
case size >= 128*1024:
|
case size >= 128*1024:
|
||||||
pool128k.Put(b)
|
pool128k.Put(b)
|
||||||
|
Loading…
Reference in New Issue
Block a user