Commit cc769931 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d2d97b34
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment