Fix UAF in CreatePsDec reset branch

CreatePsDec supports a reset an open instance path. If any later
step fails, control jumps to bail.

This commit fixes the UAF by deleting only locally-allocated buffers
inside CreatePsDec and explicitly calling DeletePsDec() in the caller
sbrDecoder_ResetElement if CreatePsDec fails. DeletePsDec() will reclaim
the space and clear the handle.

Bug: 503543341
Test: atest libSBRdec_test --host
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:800453b0211a74ebdf5456c6acbcb0f9a0731a03
Merged-In: Ie4a4a037e20d32416eef9734dda18c32c263f688
Change-Id: Ie4a4a037e20d32416eef9734dda18c32c263f688
4 files changed