diff options
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/pod.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/pod.go b/libpod/pod.go index 19347dde7..1fde4285d 100644 --- a/libpod/pod.go +++ b/libpod/pod.go @@ -78,7 +78,7 @@ func (p *Pod) UsePodCgroup() bool { // CgroupPath returns the path to the pod's CGroup func (p *Pod) CgroupPath() (string, error) { p.lock.Lock() - p.lock.Unlock() + defer p.lock.Unlock() if err := p.updatePod(); err != nil { return "", err } |