Move malloc() down until after all initializations, so that the resource is
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 23 Aug 2008 18:46:30 +0000 (18:46 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 23 Aug 2008 18:46:30 +0000 (18:46 +0000)
commit47f944a2efea1af48d2f47df25ee92386dbd8491
tree18a39f92997407d5c3e0db8e3e43be5343c1ec49
parente6c13819825aab796965a96ffb451cd008eab647
Move malloc() down until after all initializations, so that the resource is
only allocated if initialization worked. This means that on failure, we
don't have to deallocate it.

Originally committed as revision 14924 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/tcp.c