Fixes CID 1442564.
Unified · Split
| @@ -1101,6 +1101,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame) · 1100 unmodified lines | ||
| 1101 | 1101 | return 0; |
| 1102 | 1102 | |
| 1103 | 1103 | fail: |
| 1104 | + vaapi_encode_free(avctx, pic); | |
| 1104 | 1105 | return err; |
| 1105 | 1106 | } |
| 1106 | 1107 | |