[FFmpeg-devel] [PATCH] Free the RTSPStreams in ff_rtsp_close_streams

Janne Grunau janne-ffmpeg
Tue Feb 1 20:40:35 CET 2011


On Tue, Feb 01, 2011 at 02:14:25PM -0500, Ronald S. Bultje wrote:
> Hi,
> 
> On Tue, Feb 1, 2011 at 2:09 PM, Luca Barbato <lu_zero at gentoo.org> wrote:
> > 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
> 
> OK.

queued

Janne



More information about the ffmpeg-devel mailing list