You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/parser: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user