diff mbox series

[FFmpeg-devel,2/4] vf_pp: remove unnecessary free

Message ID 20210126170102.15175-2-anton@khirnov.net
State Accepted
Commit cc4feff861e866550956f39c194001d2628939fa
Headers show
Series [FFmpeg-devel,1/4] mjpegdec: stop setting the QP table
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov Jan. 26, 2021, 5:01 p.m. UTC
ff_qp_table_extract() frees the table on failure.

Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavfilter/vf_pp.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_pp.c b/libavfilter/vf_pp.c
index 29ab777e01..19a0f9fc6e 100644
--- a/libavfilter/vf_pp.c
+++ b/libavfilter/vf_pp.c
@@ -145,7 +145,6 @@  static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf)
     if (ret < 0) {
         av_frame_free(&inbuf);
         av_frame_free(&outbuf);
-        av_freep(&qp_table);
         return ret;
     }