diff options
author | Martin Storsjö <martin@martin.st> | 2010-02-22 21:20:30 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-02-22 21:20:30 +0000 |
commit | f86f66562311f38b6b7864c19720727916fb0d19 (patch) | |
tree | 5f7ab307661b47a84efac60380314eb68644f27e /libavformat/rtsp.c | |
parent | af037f8098f0e1854d0774d0d7759749be196849 (diff) | |
download | ffmpeg-f86f66562311f38b6b7864c19720727916fb0d19.tar.gz |
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
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index e06fba8c61..26b9e9312b 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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) |