Skip to content

Commit

Permalink
Merge pull request #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

1 comment on commit 3fbae8e

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.