qemu: Avoid memleak on failure to format blockjobs
qemu: Avoid memleak on failure to format blockjobs

virXMLFormatElement() frees attrBuf on success, but not necessarily
on failure. Most other callers of this function take the time to
reset attrBuf afterwords, but qemuDomainObjPrivateXMLFormatBlockjobs()
was relying on it succeeding, and could thus result in a memory leak.

Signed-off-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>
ACKed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

crobinso/libvirt,olafhering/libvirt,olafhering/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,nertpinx/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,jfehlig/libvirt,eskultety/libvirt,eskultety/libvirt,jfehlig/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,nertpinx/libvirt,eskultety/libvirt,jfehlig/libvirt,andreabolognani/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,jardasgit/libvirt,olafhering/libvirt,eskultety/libvirt,andreabolognani/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,zippy2/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt,crobinso/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,zippy2/libvirt