RTSP: Clean up rtsp_hd on failure
authorMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2010 17:54:56 +0000 (17:54 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2010 17:54:56 +0000 (17:54 +0000)
commitd3f84dfc0e65201983e88c99b7544d5a60d0165e
treed27cb75b30a27d5d8710d9ca8b866ee779ca62b1
parente8ccf245276216e8d94aa1dc802053492254d22a
RTSP: Clean up rtsp_hd on failure

Since rtsp_hd isn't assigned to rt->rtsp_hd until after the setup phase,
the initialized URLContext could be leaked on failures.

Originally committed as revision 23643 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c