mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2a26b22a17
commit
fc8d59fa6f
@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
|
||||
H264Context *h = s->priv_data;
|
||||
ParseContext *pc = &h->parse_context;
|
||||
|
||||
av_free(pc->buffer);
|
||||
av_freep(&pc->buffer);
|
||||
ff_h264_free_context(h);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user