mirror of https://github.com/FFmpeg/FFmpeg.git
avcodec/vulkan_encode_hevc: Fix memleak on error
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
70fa44dfa8
commit
d794ecd9d2
|
|
@ -1218,7 +1218,7 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||
if (err < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
|
||||
av_err2str(err));
|
||||
return err;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (sps_override) {
|
||||
|
|
@ -1246,10 +1246,12 @@ static int parse_feedback_units(AVCodecContext *avctx,
|
|||
}
|
||||
}
|
||||
|
||||
err = 0;
|
||||
fail:
|
||||
ff_cbs_fragment_free(&au);
|
||||
ff_cbs_close(&cbs);
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static int init_base_units(AVCodecContext *avctx)
|
||||
|
|
|
|||
Loading…
Reference in New Issue