Freeing a buffer allocated in the VBLE decoder's init function is the only thing the decoder's close function does and this implies that it is unnecessary to call it in case said allocation fails. Yet this is what has been done.
Unified · Split
| @@ -197,7 +197,6 @@ static av_cold int vble_decode_init(AVCodecContext *avctx) · 196 unmodified lines | ||
| 197 | 197 | |
| 198 | 198 | if (!ctx->val) { |
| 199 | 199 | av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n"); |
| 200 | − vble_decode_close(avctx); | |
| 201 | 200 | return AVERROR(ENOMEM); |
| 202 | 201 | } |
| 203 | 202 | |