go/src/container/heap
WhisperRain 7a9968f96f container/heap: avoid memory leak in example
Set element in slice to nil avoiding memory leak.

Change-Id: I9dbef9a0466407011e326725d3a0b681cd815389
GitHub-Last-Rev: 1bae5d3758
GitHub-Pull-Request: golang/go#30386
Reviewed-on: https://go-review.googlesource.com/c/163601
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2019-02-26 23:42:26 +00:00
..
example_intheap_test.go
example_pq_test.go container/heap: avoid memory leak in example 2019-02-26 23:42:26 +00:00
heap.go container/heap: adjust wording in comments 2018-11-13 13:42:59 +00:00
heap_test.go