mirror of
https://github.com/moby/moby.git
synced 2026-07-17 21:11:19 +00: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>