-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slices: zero the slice elements discarded by Delete, DeleteFunc, Comp…
…act, CompactFunc, Replace. Backport from stdlib: to avoid memory leaks in slices that contain pointers, clear the elements between the new length and the original length. Fixes golang/go#63393 Change-Id: I38bf64b27619d8067f2e95ce3c7952ec95ca55b8 Reviewed-on: https://go-review.googlesource.com/c/exp/+/543335 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Eli Bendersky <eliben@google.com>
- Loading branch information
1 parent
db7319d
commit 1b97071
Showing
2 changed files
with
160 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters