Fix a potential resource leak and add alloc checks
authorWan-Teh Chang <wtc@google.com>
Fri, 22 Sep 2023 22:50:17 +0000 (15:50 -0700)
committerWan-Teh Chang <wtc@google.com>
Fri, 29 Sep 2023 22:08:28 +0000 (15:08 -0700)
commit7f568f98762547a22d4e82d0ddf64986c6407c34
tree069fa36fd82ae5c7ddc8c7446d71fe28c7618af1
parent4697b110ac3c4da19bfbd742432548820f0f38de
Fix a potential resource leak and add alloc checks

Backport fixes from libaom:
https://aomedia-review.googlesource.com/c/aom/+/109061
https://aomedia-review.googlesource.com/c/aom/+/158102

Change-Id: Ia9d42d474be2898f9ae2fdc28606273377da3e90
examples/resize_util.c