Skip to content

Commit 2b04dbc

Browse files
florianlrockdaboot
andauthored
Update process/process.go
Co-authored-by: Tim Rühsen <[email protected]>
1 parent 4b538b5 commit 2b04dbc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

process/process.go

-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ func parseMappings(mapsFile io.Reader) ([]Mapping, error) {
8787
return mappings, errors.New("failed to get memory from sync pool")
8888
}
8989
defer func() {
90-
// Reset memory and return it for reuse.
91-
for j := 0; j < len(*scanBuf); j++ {
92-
(*scanBuf)[j] = 0x0
93-
}
9490
bufPool.Put(scanBuf)
9591
}()
9692
scanner.Buffer(*scanBuf, 8192)

0 commit comments

Comments
 (0)