[FFmpeg-cvslog] lavc/vaapi_encode: Fix leak in error case
Mark Thompson
git at videolan.org
Sun Feb 9 22:37:24 EET 2020
ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sun Sep 29 17:46:00 2019 +0100| [177a90b1a3fcbadbcd3e32bfab5fa3cf01e9b8b8] | committer: Mark Thompson
lavc/vaapi_encode: Fix leak in error case
Fixes CID 1442564.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=177a90b1a3fcbadbcd3e32bfab5fa3cf01e9b8b8
---
libavcodec/vaapi_encode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index b0235114df..8ff720e395 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -1101,6 +1101,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame)
return 0;
fail:
+ vaapi_encode_free(avctx, pic);
return err;
}
More information about the ffmpeg-cvslog
mailing list