aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2019-07-09 19:03:58 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-06 11:30:42 +0100
commite8b0f20e515327949fa8e2ec56d4605c2f54dcc5 (patch)
tree8d3694a06a16ed47a3dddc47d535ff0c0df498e6 /tests
parent7c1b403365904c28e26b37db78eb3535eec79005 (diff)
downloadffmpeg-e8b0f20e515327949fa8e2ec56d4605c2f54dcc5.tar.gz
avcodec/utils, avcodec_open2: close codec on failure
after a successful init if the function fails for another reason close the codec without requiring FF_CODEC_CAP_INIT_CLEANUP which is meant to cover init failures themselves. fixes a memory leak in those cases. BUG=oss-fuzz:15529 Signed-off-by: James Zern <jzern@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b1febda061955c6f4bfbc1a75918b5e75e7d7f80) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions