]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Split out code to generate VNC command line
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Apr 2013 12:39:46 +0000 (14:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Apr 2013 19:30:55 +0000 (21:30 +0200)
commit66135c72080b000a0be4f59f07c5b4d3fdcb0152
tree73789d789ec9306c6f7e92128efb563af25831ab
parentd05b6844c91f5b1041a7d6390122665c52775c9f
qemu: Split out code to generate VNC command line

Decrease size of qemuBuildGraphicsCommandLine() by splitting out
spice-related code into qemuBuildGraphicsVNCCommandLine().

This patch also fixes 2 possible memory leaks on error path in the code
that was split-out. The buffer containing the already generated options
and a listen address string could be leaked.

Also break a few very long lines and reflow code that fits now.
src/qemu/qemu_command.c