mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #4796 from astrawind/fix/seccomp-agent-conn-leak
libcontainer: close seccomp agent connection to prevent resource leaks
This commit is contained in:
@@ -896,6 +896,7 @@ func sendContainerProcessState(listenerPath string, state *specs.ContainerProces
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to connect with seccomp agent specified in the seccomp profile: %w", err)
|
return fmt.Errorf("failed to connect with seccomp agent specified in the seccomp profile: %w", err)
|
||||||
}
|
}
|
||||||
|
defer conn.Close()
|
||||||
|
|
||||||
socket, err := conn.(*net.UnixConn).File()
|
socket, err := conn.(*net.UnixConn).File()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user