diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-01 10:50:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-01 11:36:41 +0100 |
commit | cc769931ab0ce8440cc3dd863b3d6a036ab9608b (patch) | |
tree | 180528392423b15d6e2f8508119a0680e9a1dfbb | |
parent | d2d97b34a0a8b54578f957e01f1462b25a88d495 (diff) | |
download | ffmpeg-cc769931ab0ce8440cc3dd863b3d6a036ab9608b.tar.gz |
avcodec/parser: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 55c2f527a2..d1e1574a65 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -212,7 +212,7 @@ void av_parser_close(AVCodecParserContext *s) if (s) { if (s->parser->parser_close) s->parser->parser_close(s); - av_free(s->priv_data); + av_freep(&s->priv_data); av_free(s); } } |