You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -67,7 +67,7 @@ typedef struct ATRAC3PContext {
|
|||||||
|
|
||||||
static av_cold int atrac3p_decode_close(AVCodecContext *avctx)
|
static av_cold int atrac3p_decode_close(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
av_free(((ATRAC3PContext *)(avctx->priv_data))->ch_units);
|
av_freep(&((ATRAC3PContext *)(avctx->priv_data))->ch_units);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user