From adc0e57d0d13c611d21687dcf7d4f49832f0e98f Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Mon, 20 Sep 2021 16:33:03 +0200 Subject: [PATCH] Remove useless runtime.KeepAlive (#1107) * Remove useless runtime.KeepAlive * Update bytesconv.go --- bytesconv.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/bytesconv.go b/bytesconv.go index 374092a30f..81f8e5b167 100644 --- a/bytesconv.go +++ b/bytesconv.go @@ -11,7 +11,6 @@ import ( "math" "net" "reflect" - "runtime" "strings" "sync" "time" @@ -348,7 +347,6 @@ func s2b(s string) (b []byte) { bh.Data = sh.Data bh.Cap = sh.Len bh.Len = sh.Len - runtime.KeepAlive(&s) return b }