[FFmpeg-cvslog] r21970 - trunk/libavformat/rtsp.c

mstorsjo subversion
Mon Feb 22 22:20:30 CET 2010


Author: mstorsjo
Date: Mon Feb 22 22:20:30 2010
New Revision: 21970

Log:
Free metadata in chained RTP muxers in the RTSP muxer

This fixes a minor memory leak

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Mon Feb 22 20:47:22 2010	(r21969)
+++ trunk/libavformat/rtsp.c	Mon Feb 22 22:20:30 2010	(r21970)
@@ -586,6 +586,8 @@ void rtsp_close_streams(AVFormatContext 
                     AVFormatContext *rtpctx = rtsp_st->transport_priv;
                     av_write_trailer(rtpctx);
                     url_fclose(rtpctx->pb);
+                    av_metadata_free(&rtpctx->streams[0]->metadata);
+                    av_metadata_free(&rtpctx->metadata);
                     av_free(rtpctx->streams[0]);
                     av_free(rtpctx);
                 } else if (rt->transport == RTSP_TRANSPORT_RDT)



More information about the ffmpeg-cvslog mailing list