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

Submitted by Zhong Li on Sept. 5, 2019, 6:18 a.m.

Details

Message ID 1567664337-20074-1-git-send-email-zhong.li@intel.com
State New
Headers show

Commit Message

Zhong Li Sept. 5, 2019, 6:18 a.m.
Fix CID: 1452760

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

Patch hide | download patch | download mbox

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);