[FFmpeg-cvslog] avcodec/parser: use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Sat Nov 1 11:37:54 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov  1 10:50:18 2014 +0100| [cc769931ab0ce8440cc3dd863b3d6a036ab9608b] | committer: Michael Niedermayer

avcodec/parser: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc769931ab0ce8440cc3dd863b3d6a036ab9608b
---

 libavcodec/parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 55c2f52..d1e1574 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -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);
     }
 }



More information about the ffmpeg-cvslog mailing list