diff options
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index c5f6facc4d..7cdca03e5b 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -682,7 +682,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer { } x = unsafe.Pointer(v) if needzero && span.needzero != 0 { - memclr(unsafe.Pointer(v), size) + memclrNoHeapPointers(unsafe.Pointer(v), size) } } } else { |
