]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildHostNetStr: Don't leak buffer
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Sep 2017 08:48:33 +0000 (10:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Sep 2017 11:41:31 +0000 (13:41 +0200)
commit891b3c119ea6f7e9404beef2bcc5319ee6182708
tree73def5454bb55c16b4bb5069aea0477626d98145
parentff5c5a9bbb64fdc850ab55b05c9453ca7eeda743
qemuBuildHostNetStr: Don't leak buffer

If there was an error when constructing the buffer, NULL is
returned. The buffer is never freed though.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c