diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-02-01 20:09:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-02 03:40:50 +0100 |
commit | 2aaa2a17007a1f6b3e1544890e0ff3eae60b7737 (patch) | |
tree | 65897e500cd104350b816dbedf8d885f3db73085 | |
parent | 45eaec3029b0a84260a6f4c447c60a9645b1bceb (diff) | |
download | ffmpeg-2aaa2a17007a1f6b3e1544890e0ff3eae60b7737.tar.gz |
Free the RTSPStreams in ff_rtsp_close_streams
This plugs a small memory leak
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit ea7f080749d68a431226ce196014da38761a0d82)
-rw-r--r-- | libavformat/rtsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |