diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-14 18:29:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-14 18:29:49 +0200 |
commit | fd367668e14462b875960fd52cccaf490f24be92 (patch) | |
tree | e95b296e06f6b4320462c4c783d2a255393895e7 /libavcodec/flac_parser.c | |
parent | 5ee6fb758329ce3fbd52678d48eb14d1c53f89b8 (diff) | |
download | ffmpeg-fd367668e14462b875960fd52cccaf490f24be92.tar.gz |
avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r-- | libavcodec/flac_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index a031dbfc62..0e45ab0fed 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 = { |