cmd/cgo: compiler complains about C.free(*C.char)
but is happy with defer C.free(*C.char)
#17562
Labels
Milestone
C.free(*C.char)
but is happy with defer C.free(*C.char)
#17562
What version of Go are you using (
go version
)?go version go1.7.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN="/home/fan/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/fan/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build668013101=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
What did you expect to see?
Consistent behavior.
What did you see instead?
C.free(*C.char)
:defer C.free(*C.char)
:The text was updated successfully, but these errors were encountered: