lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
430 stars 76 forks source link

Set c.container to nil after release #146

Closed tomponline closed 3 years ago

tomponline commented 3 years ago

Allows other functions to detect it has been freed and avoid calling C functions with nil pointer.

Attempt to fix https://github.com/lxc/lxd/issues/8327