Move malloc() down until after all initializations, so that the resource is
commit9e89c0b1373efc2f3cc03c30416f748398d16d7d
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 23 Aug 2008 18:46:30 +0000 (23 18:46 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 23 Aug 2008 18:46:30 +0000 (23 18:46 +0000)
tree0e38e0c86bfbc45f560a4e70620a51f9fed452af
parent8b3edaa2e0d969f7e7311101d8fe08f28533e74b
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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14924 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavformat/tcp.c