[FFmpeg-devel] [PATCH] Free the RTSPStreams in ff_rtsp_close_streams
Luca Barbato
lu_zero
Tue Feb 1 20:09:24 CET 2011
This plugs a small memory leak
---
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);
--
1.7.2.2
More information about the ffmpeg-devel
mailing list