mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Make sure to call C.free on C string allocated using C.CString in every exit path. C.CString allocates memory in the C heap using malloc. It is the callers responsibility to free them. See https://golang.org/cmd/cgo/#hdr-Go_references_to_C for details. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Upstream-commit: 593dbfd1448e8dac08488786fde6fe7fb057bdac Component: engine