diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-06-09 17:47:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-10 18:10:09 +0200 |
commit | cf22f944d55c8eb0119fb20354a625f8c41eb11f (patch) | |
tree | 16dbe614ebc4e226680873b209254036c6e1a448 /libavutil/hwcontext_d3d11va.c | |
parent | 698ed0d5a5a3a1219179facb5538eea463fae13f (diff) | |
download | ffmpeg-cf22f944d55c8eb0119fb20354a625f8c41eb11f.tar.gz |
avutil/hwcontext_d3d11va: Free AVD3D11FrameDescriptor on error
Fixes: CID1598558 Resource leak
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Steve Lhomme <robux4@ycbcr.xyz>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/hwcontext_d3d11va.c')
-rw-r--r-- | libavutil/hwcontext_d3d11va.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c index c04ab01a28..9b3c5f389f 100644 --- a/libavutil/hwcontext_d3d11va.c +++ b/libavutil/hwcontext_d3d11va.c @@ -190,6 +190,7 @@ static AVBufferRef *wrap_texture_buf(AVHWFramesContext *ctx, ID3D11Texture2D *te sizeof(*frames_hwctx->texture_infos)); if (!frames_hwctx->texture_infos) { ID3D11Texture2D_Release(tex); + av_free(desc); return NULL; } s->nb_surfaces = s->nb_surfaces_used + 1; |