mirror of
https://github.com/containers/podman.git
synced 2026-10-25 03:09:29 -04:00
Added a defer to an Unlock that immediately followed a Lock
Signed-off-by: haircommander <pehunt@redhat.com>
This commit is contained in:
1 parent
06a29f0bde
commit
0699b39793
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user