diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-29 20:52:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-29 20:52:43 +0000 |
commit | d6f2922e91928b5191a5c5f1b3a6b320712b5ce3 (patch) | |
tree | 4f2fad1f4b778519bdd5941185c7e1d032af055b /libgo/go/container | |
parent | 91bfca59095b1cca9d4364996866848eaaf76c26 (diff) | |
download | gcc-d6f2922e91928b5191a5c5f1b3a6b320712b5ce3.zip gcc-d6f2922e91928b5191a5c5f1b3a6b320712b5ce3.tar.gz gcc-d6f2922e91928b5191a5c5f1b3a6b320712b5ce3.tar.bz2 |
libgo: Update Go library to master revision 15489/921e53d4863c.
From-SVN: r195560
Diffstat (limited to 'libgo/go/container')
-rwxr-xr-x | libgo/go/container/list/list.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/container/list/list.go b/libgo/go/container/list/list.go index 69818c3..562a5ba 100755 --- a/libgo/go/container/list/list.go +++ b/libgo/go/container/list/list.go @@ -108,6 +108,8 @@ func (l *List) insertValue(v interface{}, at *Element) *Element { func (l *List) remove(e *Element) *Element { e.prev.next = e.next e.next.prev = e.prev + e.next = nil // avoid memory leaks + e.prev = nil // avoid memory leaks e.list = nil l.len-- return e |