x/text/cases: Is there memory leak in icu.go? #25562
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?$ go version
go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
We take a look at golang/text/cases/icu.go. Find that cgo is used in this file.
What did you expect to see?
C.CString freed.
What did you see instead?
loc and src are not freed.
https://github.com/golang/text/blob/5c1cf69b5978e5a34c5f9ba09a83e56acc4b7877/cases/icu.go#L29
The text was updated successfully, but these errors were encountered: