diff options
author | Mark Thompson <sw@jkqxz.net> | 2019-09-29 17:46:00 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-09 20:36:44 +0000 |
commit | 177a90b1a3fcbadbcd3e32bfab5fa3cf01e9b8b8 (patch) | |
tree | ae8b1340186c238ccc7cc17521076d7297f34809 | |
parent | 5392982241ededd6f6b041ff9ab288d0605564ea (diff) | |
download | ffmpeg-177a90b1a3fcbadbcd3e32bfab5fa3cf01e9b8b8.tar.gz |
lavc/vaapi_encode: Fix leak in error case
Fixes CID 1442564.
-rw-r--r-- | libavcodec/vaapi_encode.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |