ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Wed Dec 24 13:01:10 2014 +0100| [3f56224a9a83719b5bb42ad0bb9a6267b131e50b] | committer: Michael Niedermayer
avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f56224a9a83719b5bb42ad0bb9a6267b131e50b --- libavformat/rtpdec_mpeg4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 6ab3e64..9655d30 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -95,9 +95,9 @@ static PayloadContext *new_context(void) static void free_context(PayloadContext *data) { - av_free(data->au_headers); - av_free(data->mode); - av_free(data); + av_freep(&data->au_headers); + av_freep(&data->mode); + av_freep(&data); } static int parse_fmtp_config(AVCodecContext *codec, char *value) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog