qemu: monitor: Fix a memory leak in qemuMonitorJSONAttachCharDevCommand
qemu: monitor: Fix a memory leak in qemuMonitorJSONAttachCharDevCommand

With the current logic, we only free @tlsalias as part of the error
label and would have to free it explicitly earlier in the code. Convert
the error label to cleanup, so that we have only one sink, where we
handle all frees. Since JSON object append operation consumes pointers,
make sure @backend is cleared before we hit the cleanup label.

Signed-off-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>
Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>

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