From c8714ea1b39ed25c61f91cbae6930defc3682cc9 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 20 Oct 2008 09:02:55 +0000
Subject: [PATCH] Use av_freep() in ff_parse_close().

Originally committed as revision 15654 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 7262b92878c..460693f2dd1 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)
-- 
GitLab