Clear BCB if space allocation failed

setupBcb() is called before allocating space, if space allocation
failed, we should clearBcb() to properly release resources.

Test: th
Bug: 221001516
Change-Id: Idce67925503cf910ab226b193a4387c32225c0bb
1 file changed