[SCM] libav/experimental: Free the RTSPStreams in ff_rtsp_close_streams

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:23:03 UTC 2013


The following commit has been merged in the experimental branch:
commit ea7f080749d68a431226ce196014da38761a0d82
Author: Luca Barbato <lu_zero at gentoo.org>
Date:   Tue Feb 1 20:09:24 2011 +0100

    Free the RTSPStreams in ff_rtsp_close_streams
    
    This plugs a small memory leak
    
    Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>

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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list