1
0
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:
Darien Raymond 2018-03-11 23:30:51 +01:00
parent 994aecd13c
commit 931c8597ca
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)