mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
Close logfile fd after spawning qemu
* src/qemu_driver.c: avoid a leak of file descriptor when exec'ing qemu
This commit is contained in:
parent
8d4ed2ad3d
commit
32456779a1
@ -2239,6 +2239,9 @@ static int qemudStartVMDaemon(virConnectPtr conn,
|
||||
/* No need for 'goto cleanup' now since qemudShutdownVMDaemon does enough */
|
||||
}
|
||||
|
||||
if (logfile != -1)
|
||||
close(logfile);
|
||||
|
||||
return ret;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user