]> git.sesse.net Git - ffmpeg/commitdiff
Free the RTSPStreams in ff_rtsp_close_streams
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 1 Feb 2011 19:09:24 +0000 (20:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Feb 2011 02:40:50 +0000 (03:40 +0100)
This plugs a small memory leak

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit ea7f080749d68a431226ce196014da38761a0d82)

libavformat/rtsp.c

index 9a6d6ad2b813e2be33cbb908019119aba07577fc..09e2f1ec8a9d678f38df79840c4cbd3354092219 100644 (file)
@@ -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);