[FFmpeg-soc] [PATCH] RTSP/tunneling: clean up properly on failures

Martin Storsjö martin at martin.st
Fri Jun 18 09:45:45 CEST 2010


Hi,

I noticed that the GET URLContext can be leaked if some of the later 
operations fail before assigning the handles to rt->rtsp_hd{,_out}. This 
patch should fix the issue.

Josh, do you think this is ok, or would you rather assign the handles 
directly to rt->rtsp_hd without using the local variables?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RTSP-Clean-up-rtsp_hd-on-failure.patch
Type: text/x-diff
Size: 1009 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20100618/93c494fd/attachment.patch>


More information about the FFmpeg-soc mailing list