Skip to content
Snippets Groups Projects
Commit cc769931 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/parser: use av_freep() to avoid leaving stale pointers in memory

parent d2d97b34
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,7 @@ void av_parser_close(AVCodecParserContext *s) ...@@ -212,7 +212,7 @@ void av_parser_close(AVCodecParserContext *s)
if (s) { if (s) {
if (s->parser->parser_close) if (s->parser->parser_close)
s->parser->parser_close(s); s->parser->parser_close(s);
av_free(s->priv_data); av_freep(&s->priv_data);
av_free(s); av_free(s);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment