Skip to content

Commit

Permalink
Merge pull request containers#24259 from emakrushin/containers
Browse files Browse the repository at this point in the history
Unlock mutex before returning from function
  • Loading branch information
openshift-merge-bot[bot] authored Oct 14, 2024
2 parents 11ab0b7 + 06b470d commit 3fbae8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/domain/infra/abi/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ func (ic *ContainerEngine) ContainerRm(ctx context.Context, namesOrIds []string,
errMap, err := parallelctr.ContainerOp(ctx, libpodContainers, func(c *libpod.Container) error {
mapMutex.Lock()
if _, ok := ctrsMap[c.ID()]; ok {
mapMutex.Unlock()
return nil
}
mapMutex.Unlock()
Expand Down

0 comments on commit 3fbae8e

Please sign in to comment.