summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_qp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_qp.c b/libavfilter/vf_qp.c
index 9c0679a70f..d9766344c9 100644
--- a/libavfilter/vf_qp.c
+++ b/libavfilter/vf_qp.c
@@ -95,6 +95,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
out = av_frame_clone(in);
if (!out) {
+ av_buffer_unref(&out_qp_table_buf);
ret = AVERROR(ENOMEM);
goto fail;
}