Why alloc_locals is only used in _burn() but not in _mint() in cairo contracts?

I was looking at cairo contracts by OZ and didn't understand the use of alloc_locals only in _burn() function but not in _mint(). I read about alloc_locals from cairo docs and understood it but here the use of it little bit confusing for me.

library: https://github.com/OpenZeppelin/cairo-contracts/blob/main/src/openzeppelin/token/erc20/library.cairo#L254

Hey @rohit-goswami

In a previous iteration, we needed the alloc_locals to prevent a revoked reference. If you take a look at the following link, balance gets revoked without alloc_locals:

That said, it's no longer needed :slight_smile: thank you for bringing this up!