avcodec/pngdec: Clean up on av_frame_ref() failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 00:42:11 +0000 (02:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 Sep 2017 00:56:20 +0000 (02:56 +0200)
commit5480e82d77770e81e897a8c217f3c7f0c13a6de1
treeb81c06ec5384f3f18ee95606f8c0d90bc5946035
parentca72cd137d3ba57b03018dbeb83ca99d7ef96dca
avcodec/pngdec: Clean up on av_frame_ref() failure

Fixes: memleak
Fixes: 3203/clusterfuzz-testcase-minimized-4514553595428864

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c