avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 14 Oct 2014 16:29:49 +0000 (18:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 14 Oct 2014 16:29:49 +0000 (18:29 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/flac_parser.c

index a031dbf..0e45ab0 100644 (file)
@@ -724,7 +724,7 @@ static void flac_parse_close(AVCodecParserContext *c)
         curr = temp;
     }
     av_fifo_freep(&fpc->fifo_buf);
-    av_free(fpc->wrap_buf);
+    av_freep(&fpc->wrap_buf);
 }
 
 AVCodecParser ff_flac_parser = {