mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_qp: Fix leak of out_qp_table_buf
Fixes CID1270821 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a76e91bf67
commit
bdb3194217
|
@ -95,6 +95,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||||
|
|
||||||
out = av_frame_clone(in);
|
out = av_frame_clone(in);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
|
av_buffer_unref(&out_qp_table_buf);
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue