SIGN IN SIGN UP
containers / podman UNCLAIMED

Podman: A tool for managing OCI containers and pods.

0 0 139 Go

pkg/trust: fix directory handle leak in loadAndMergeConfig

The os.Open(dirPath) call opens a directory handle used for
Readdirnames() but never closes it, leaking one file descriptor
per call to loadAndMergeConfig().

Add defer dir.Close() after the error check.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
S
Sebastien Tardif committed
72af65504011d0959c88ca5562ba603c435fa11d
Parent: 90f38bc