diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 7262b92878..460693f2dd 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -291,7 +291,7 @@ void ff_parse_close(AVCodecParserContext *s) { ParseContext *pc = s->priv_data; - av_free(pc->buffer); + av_freep(&pc->buffer); } void ff_parse1_close(AVCodecParserContext *s)