]> xenbits.xensource.com Git - libvirt.git/commit
qemuPrepareNVRAM: Switch to VIR_AUTOCLOSE
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Feb 2022 08:28:11 +0000 (09:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Feb 2022 12:59:45 +0000 (13:59 +0100)
commit2ddb3bf0e1a9beef5957a8251b32d07260879335
tree78fe662fb85ada599896c6319e4bd2561272a8a7
parent18b9a7ac98336bb6fcbadb93c54ad84d02f25897
qemuPrepareNVRAM: Switch to VIR_AUTOCLOSE

Nothing inside the qemuPrepareNVRAM function relies on @srcFD
being closed early and nothing closes it early. It's okay then to
close it automatically when leaving the function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_process.c