qemu: plug memory leak
qemu: plug memory leak

Leak introduced in commit c1bc3d89.
Detected by valgrind:

==18462== 1,100 bytes in 1 blocks are definitely lost in loss record 183 of 184
==18462==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==18462==    by 0x4A06167: realloc (vg_replace_malloc.c:525)
==18462==    by 0x4AADBB: virReallocN (memory.c:161)
==18462==    by 0x4A975E: virBufferGrow (buf.c:117)
==18462==    by 0x4A9D92: virBufferVasprintf (buf.c:290)
==18462==    by 0x4A9EF7: virBufferAsprintf (buf.c:263)
==18462==    by 0x429488: qemuBuildControllerDevStr (qemu_command.c:1993)
==18462==    by 0x42C4B6: qemuBuildCommandLine (qemu_command.c:3803)
==18462==    by 0x41A604: testCompareXMLToArgvHelper (qemuxml2argvtest.c:124)
==18462==    by 0x41BB81: virtTestRun (testutils.c:141)
==18462==    by 0x416DFF: mymain (qemuxml2argvtest.c:369)
==18462==    by 0x41B277: virtTestMain (testutils.c:696)
==18462==
==18462== LEAK SUMMARY:
==18462==    definitely lost: 1,100 bytes in 1 blocks
==18462==    indirectly lost: 0 bytes in 0 blocks

* src/qemu/qemu_command.c (qemuBuildCommandLine): Clean up on success.

Signed-off-by: Alex Jia <e236faec8cb8371bfb245ba3769a84afc9a11438@redhat.com>

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