vp9_dx_iface: fix leaks on init_decoder() failure
authorJames Zern <jzern@google.com>
Sat, 24 Jun 2023 02:27:26 +0000 (19:27 -0700)
committerJames Zern <jzern@google.com>
Tue, 27 Jun 2023 02:14:14 +0000 (19:14 -0700)
commit885ecc7c667eac3521d4558b2be554d96c95da41
treed9c33f928dd43811934aa27cbfaefcba49db5001
parent14e52008edbf2e91386423fdd53310fe49654991
vp9_dx_iface: fix leaks on init_decoder() failure

If any allocations fail in init_decoder() and the application continues
to call vpx_codec_decode() some of the allocations would be orphaned or
the decoder would be left in a partially initialized state.

Found with vpx_dec_fuzzer_vp9 & Nallocfuzz
(https://github.com/catenacyber/nallocfuzz).

Bug: webm:1807
Change-Id: I44f662526d715ecaeac6180070af40672cd42611
vp9/vp9_dx_iface.c