Parcourir la source

don't release buffer as it is written

Darien Raymond il y a 7 ans
Parent
commit
09824b9b1a
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      common/buf/copy.go

+ 0 - 1
common/buf/copy.go

@@ -90,7 +90,6 @@ func copyInternal(reader Reader, writer Writer, handler *copyHandler) error {
 			}
 
 			if werr := handler.writeTo(writer, buffer); werr != nil {
-				buffer.Release()
 				return werr
 			}
 		}