[FFmpeg-cvslog] Free the RTSPStreams in ff_rtsp_close_streams
Luca Barbato
git
Wed Feb 2 03:56:26 CET 2011
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Feb 1 20:09:24 2011 +0100| [2aaa2a17007a1f6b3e1544890e0ff3eae60b7737] | committer: Michael Niedermayer
Free the RTSPStreams in ff_rtsp_close_streams
This plugs a small memory leak
Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>
(cherry picked from commit ea7f080749d68a431226ce196014da38761a0d82)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2aaa2a17007a1f6b3e1544890e0ff3eae60b7737
---
libavformat/rtsp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 9a6d6ad..09e2f1e 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);
More information about the ffmpeg-cvslog
mailing list