[FFmpeg-devel] [PATCH] libavfilter/vaapi_transpose: Fix potential memory leak

Zhong Li zhong.li at intel.com
Thu Sep 5 09:18:57 EEST 2019


Fix CID: 1452760

Signed-off-by: Zhong Li <zhong.li at intel.com>
---
 libavfilter/vf_transpose_vaapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_transpose_vaapi.c b/libavfilter/vf_transpose_vaapi.c
index 69dbdd7..a4c6542 100644
--- a/libavfilter/vf_transpose_vaapi.c
+++ b/libavfilter/vf_transpose_vaapi.c
@@ -145,7 +145,7 @@ static int transpose_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_fra
 
     err = av_frame_copy_props(output_frame, input_frame);
     if (err < 0)
-        return err;
+        goto fail;
 
     err = ff_vaapi_vpp_init_params(avctx, &params,
                                    input_frame, output_frame);
-- 
2.7.4



More information about the ffmpeg-devel mailing list