Commit 49491dda authored by mstorsjo's avatar mstorsjo

Free metadata in chained RTP muxers in the RTSP muxer

This fixes a minor memory leak


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21970 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 60223cdd
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment