| commit | 313c8224d5e16fe554252aeaa11365e33c35b87b | [log] [tgz] |
|---|---|---|
| author | Russ Cox <rsc@golang.org> | Tue Oct 18 09:56:34 2011 -0400 |
| committer | Russ Cox <rsc@golang.org> | Tue Oct 18 09:56:34 2011 -0400 |
| tree | 656f3f3d1503c7a3fb1ac90ce1b5088fd703db78 | |
| parent | 7242052bc71f02734b1902f13c490f1791df1c76 [diff] [blame] |
gofix -r mapdelete R=golang-dev, r, adg, r, cw CC=golang-dev https://golang.org/cl/5266045
diff --git a/src/pkg/syscall/syscall_unix.go b/src/pkg/syscall/syscall_unix.go index 1590b6d..70ea3bd 100644 --- a/src/pkg/syscall/syscall_unix.go +++ b/src/pkg/syscall/syscall_unix.go
@@ -87,6 +87,6 @@ if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != 0 { return errno } - m.active[p] = nil, false + delete(m.active, p) return 0 }