lxc: avoid use-after-free
lxc: avoid use-after-free

I got this weird failure:

error: Failed to start domain simple
error: internal error cannot mix caller fds with blocking execution

and tracked it down to a use-after-free - virCommandSetOutputFD
was storing the address of a stack-local variable, which then
went out of scope before the virCommandRun that dereferenced it.

Bug introduced in commit 451cfd05 (0.9.2).

* src/lxc/lxc_driver.c (lxcBuildControllerCmd): Move log fd
registration...
(lxcVmStart): ...to caller.

datto/libvirt,jfehlig/libvirt,leilihh/libvirt,bjzhang/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,foomango/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,warewolf/libvirt,taget/libvirt,andreabolognani/libvirt,usc-isi/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,jeckersb/libvirt,danwent/libvirt-ovs,foomango/libvirt,agx/libvirt,libvirt/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,wiedi/libvirt,rmarwaha/libvirt1,zhlcindy/libvirt-1.1.4-maintain,emaste/libvirt,leilihh/libvirt,rlaager/libvirt,foomango/libvirt,fabianfreyer/libvirt,wiedi/libvirt,fabianfreyer/libvirt,emaste/libvirt,warewolf/libvirt,elmarco/libvirt,taget/libvirt,jeckersb/libvirt,iam-TJ/libvirt,nertpinx/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,datto/libvirt,jeckersb/libvirt,crobinso/libvirt,olafhering/libvirt,emaste/libvirt,wiedi/libvirt,warewolf/libvirt,usc-isi/libvirt,rmarwaha/libvirt,jeckersb/libvirt,danwent/libvirt-ovs,siboulet/libvirt-openvz,siboulet/libvirt-openvz,rmarwaha/libvirt,olafhering/libvirt,wiedi/libvirt,elmarco/libvirt,jfehlig/libvirt,rlaager/libvirt,bjzhang/libvirt,iam-TJ/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,iam-TJ/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,libvirt/libvirt,jfehlig/libvirt,shugaoye/libvirt,cbosdo/libvirt,zippy2/libvirt,emaste/libvirt,novel/fbsd-libvirt,danwent/libvirt-ovs,emaste/libvirt,jardasgit/libvirt,zippy2/libvirt,iam-TJ/libvirt,siboulet/libvirt-openvz,datto/libvirt,jfehlig/libvirt,warewolf/libvirt,cbosdo/libvirt,zippy2/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,trainstack/libvirt,crobinso/libvirt,shugaoye/libvirt,andreabolognani/libvirt,foomango/libvirt,nertpinx/libvirt,emaste/libvirt,elmarco/libvirt,rlaager/libvirt,crobinso/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,novel/fbsd-libvirt,datto/libvirt,dumbbell/libvirt,bjzhang/libvirt,eskultety/libvirt,rmarwaha/libvirt1,olafhering/libvirt,trainstack/libvirt,iam-TJ/libvirt,crobinso/libvirt,iam-TJ/libvirt,trainstack/libvirt,usc-isi/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt1,datto/libvirt,novel/fbsd-libvirt,warewolf/libvirt,elmarco/libvirt,dumbbell/libvirt,leilihh/libvirt,warewolf/libvirt,emaste/libvirt,andreabolognani/libvirt,trainstack/libvirt,jardasgit/libvirt,usc-isi/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,leilihh/libvirt,rlaager/libvirt,warewolf/libvirt,novel/fbsd-libvirt,jeckersb/libvirt,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,zippy2/libvirt,taget/libvirt,nertpinx/libvirt,wiedi/libvirt,eskultety/libvirt,taget/libvirt,danwent/libvirt-ovs,cbosdo/libvirt,rlaager/libvirt,libvirt/libvirt,olafhering/libvirt,shugaoye/libvirt,dumbbell/libvirt,agx/libvirt,shugaoye/libvirt,jardasgit/libvirt,libvirt/libvirt,eskultety/libvirt,agx/libvirt,dumbbell/libvirt,jardasgit/libvirt,trainstack/libvirt,rmarwaha/libvirt,agx/libvirt,cbosdo/libvirt,usc-isi/libvirt,bjzhang/libvirt,jeckersb/libvirt,dumbbell/libvirt,bjzhang/libvirt,foomango/libvirt,jardasgit/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,cbosdo/libvirt,nertpinx/libvirt,andreabolognani/libvirt,rmarwaha/libvirt,leilihh/libvirt,eskultety/libvirt,jeckersb/libvirt,trainstack/libvirt,trainstack/libvirt,danwent/libvirt-ovs,shugaoye/libvirt,rmarwaha/libvirt,eskultety/libvirt,wiedi/libvirt