Skip to content
Snippets Groups Projects
Commit 7a06d63a authored by ssbssa's avatar ssbssa Committed by Jean-Baptiste Kempf
Browse files

avcodec: fix memory leak


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fe8d35ff
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
p_block = vlc_av_frame_Wrap(frame);
if (unlikely(p_block == NULL))
goto drop;
frame = NULL;
}
if (p_sys->b_extract)
......@@ -403,6 +404,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
end:
*pp_block = NULL;
drop:
av_frame_free(&frame);
if( p_block != NULL )
block_Release(p_block);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment