Spot the bug in the Resource client helper

from Scala backend development
Scala 3.9.0 / Cats Effect 3.7.1 / http4s 0.23.36 / Java 25 LTS advanced 4 min 1 issue to find

What lifecycle guarantee does this helper discard?

scala
def openClient: IO[Client] =
  clientResource.allocated.map { case (client, release) =>
    client
  }
Open in playground
Report an error