]> Cypherpunks repositories - gostls13.git/commit
slices: prevent Clone keeping alive the array when cloning empty slices
authorJorropo <jorropo.pgm@gmail.com>
Wed, 17 Jul 2024 12:15:32 +0000 (14:15 +0200)
committerGopher Robot <gobot@golang.org>
Sun, 29 Sep 2024 05:04:42 +0000 (05:04 +0000)
commit2bffb8b3fb2d9137ccfa87fc35137371b86a2e96
treecee4b43bad8c21f567a4c377482eb38267e2f24c
parenteb6f2c24cd17c0ca1df7e343f8d9187eef7d6e13
slices: prevent Clone keeping alive the array when cloning empty slices

Fixes #68488

Change-Id: I39aba22cdfe8ca0bbe69db7c64f1bca75fa067fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/598875
Reviewed-by: Keith Randall <khr@golang.org>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/slices/slices.go
src/slices/slices_test.go