From 5be7aecc80b5efcd3eb01868caeb01b72b4bfd87 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 1 Sep 2013 19:20:39 +0000 Subject: [PATCH] pcm-dvd: use av_freep() Signed-off-by: Paul B Mahol --- libavcodec/pcm-dvd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }