]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainGetHostdevPath: Drop @freeTmpPath
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Sep 2019 09:25:03 +0000 (11:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Oct 2019 11:50:24 +0000 (13:50 +0200)
commit224d269f19f0a6c496dd2218f934a54742d51708
tree718e9c50164bb5c79bcf7e670ed486473979df41
parent69a66f13196d21a3dac06b9e0cf0db77e5e467fe
qemuDomainGetHostdevPath: Drop @freeTmpPath

The @freeTmpPath boolean is used to determine if @tmpPath holds
an allocated memory or is a pointer to a constant string and
therefore if it needs to be freed or not when returning from the
function. Well, we can unify the way we set @tmpPath so that it
always holds an allocated memory and thus always must be freed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_domain.c