mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
qemuDomainAttach: Initialize pidfile variable
If parsing qemu command line fails (e.g. because of non-existing process number supplied), we jump to cleanup label where we free pidfile. Therefore it needs to be initialized. Otherwise we free random pointer.
This commit is contained in:
parent
0654d274e6
commit
cd016a46c7
@ -10179,7 +10179,7 @@ static virDomainPtr qemuDomainAttach(virConnectPtr conn,
|
||||
virDomainPtr dom = NULL;
|
||||
virDomainChrSourceDefPtr monConfig = NULL;
|
||||
bool monJSON = false;
|
||||
char *pidfile;
|
||||
char *pidfile = NULL;
|
||||
|
||||
virCheckFlags(0, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user