From ea7f080749d68a431226ce196014da38761a0d82 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 1 Feb 2011 20:09:24 +0100 Subject: [PATCH] Free the RTSPStreams in ff_rtsp_close_streams This plugs a small memory leak Signed-off-by: Janne Grunau --- libavformat/rtsp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 9a6d6ad2b8..09e2f1ec8a 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -532,6 +532,7 @@ void ff_rtsp_close_streams(AVFormatContext *s) if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context) rtsp_st->dynamic_handler->close( rtsp_st->dynamic_protocol_context); + av_free(rtsp_st); } } av_free(rt->rtsp_streams);