On Mon, Aug 09, 2010 at 10:45:32PM +0200, Aurelien Jacobs wrote: > @@ -1969,6 +1974,7 @@ static int rtsp_read_close(AVFormatContext *s) > ff_rtsp_close_streams(s); > ff_rtsp_close_connections(s); > ff_network_close(); > + av_freep(&rt->real_setup_cache); Maybe also set the other one to NULL as well?