diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c index e3906a2074..d9405651ae 100644 --- a/libavcodec/pcm-dvd.c +++ b/libavcodec/pcm-dvd.c @@ -56,8 +56,7 @@ static av_cold int pcm_dvd_decode_uninit(AVCodecContext *avctx) { PCMDVDContext *s = avctx->priv_data; - if (s->extra_samples) - av_free(s->extra_samples); + av_freep(&s->extra_samples); return 0; }