Free metadata in chained RTP muxers in the RTSP muxer

This fixes a minor memory leak

Originally committed as revision 21970 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-02-22 21:20:30 +00:00
parent af037f8098
commit f86f665623
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ void rtsp_close_streams(AVFormatContext *s)
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)