[FFmpeg-cvslog] avformat/rtpdec_xiph: use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Tue Dec 23 16:03:56 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 23 15:33:07 2014 +0100| [ba8d2c90cd986a007fabea9b6358bb3f6bffd3a5] | committer: Michael Niedermayer
avformat/rtpdec_xiph: 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=ba8d2c90cd986a007fabea9b6358bb3f6bffd3a5
---
libavformat/rtpdec_xiph.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index dc34f9e..53b4975 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -67,8 +67,8 @@ static inline void free_fragment_if_needed(PayloadContext * data)
static void xiph_free_context(PayloadContext * data)
{
free_fragment_if_needed(data);
- av_free(data->split_buf);
- av_free(data);
+ av_freep(&data->split_buf);
+ av_freep(&data);
}
static av_cold int xiph_vorbis_init(AVFormatContext *ctx, int st_index,
More information about the ffmpeg-cvslog
mailing list