[FFmpeg-cvslog] avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer
git at videolan.org
Tue Oct 14 18:44:28 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 14 18:29:49 2014 +0200| [fd367668e14462b875960fd52cccaf490f24be92] | committer: Michael Niedermayer
avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd367668e14462b875960fd52cccaf490f24be92
---
libavcodec/flac_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index a031dbf..0e45ab0 100644
--- a/libavcodec/flac_parser.c
+++ b/libavcodec/flac_parser.c
@@ -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 = {
More information about the ffmpeg-cvslog
mailing list