diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index e75be7ef15..c8c4eb6b4a 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1609,7 +1609,7 @@ static av_cold int ac3_decode_end(AVCodecContext *avctx) ff_mdct_end(&s->imdct_512); ff_mdct_end(&s->imdct_256); #if (USE_FIXED) - av_free(s->fdsp); + av_freep(&s->fdsp); #endif return 0;