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

avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers

parent 2a26b22a
No related branches found
No related tags found
No related merge requests found
...@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s) ...@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
H264Context *h = s->priv_data; H264Context *h = s->priv_data;
ParseContext *pc = &h->parse_context; ParseContext *pc = &h->parse_context;
av_free(pc->buffer); av_freep(&pc->buffer);
ff_h264_free_context(h); ff_h264_free_context(h);
} }
......
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