avcodec/ac3dec: use av_freep() for saftey
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Apr 2014 02:37:33 +0000 (04:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Apr 2014 02:38:16 +0000 (04:38 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3dec.c

index e75be7e..c8c4eb6 100644 (file)
@@ -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;