aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-02-01 20:09:24 +0100
committerJanne Grunau <janne-ffmpeg@jannau.net>2011-02-01 20:40:16 +0100
commitea7f080749d68a431226ce196014da38761a0d82 (patch)
treef1b14b1c820b8d8c25f2e7853f7a5ee2db2db9b1
parent71e0bee9eabe8eea030e210f1ad74c380b8b250b (diff)
downloadffmpeg-ea7f080749d68a431226ce196014da38761a0d82.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>
-rw-r--r--libavformat/rtsp.c1
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);