mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
Plug skipped-qemudCleanup leak.
* qemud/qemud.c (main): Call qemudCleanup also upon failure. Otherwise, an error return would skip it and induce leaks.
This commit is contained in:
parent
ba8459e859
commit
cd6eefd3e8
@ -1,5 +1,9 @@
|
|||||||
Mon Mar 3 14:14:03 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Mar 3 14:14:03 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
Plug skipped-qemudCleanup leak.
|
||||||
|
* qemud/qemud.c (main): Call qemudCleanup also upon failure.
|
||||||
|
Otherwise, an error return would skip it and induce leaks.
|
||||||
|
|
||||||
Plug remoteReadConfigFile leak.
|
Plug remoteReadConfigFile leak.
|
||||||
* qemud/qemud.c (remoteReadConfigFile): Be careful to free
|
* qemud/qemud.c (remoteReadConfigFile): Be careful to free
|
||||||
"conf" after a successful virConfReadFile.
|
"conf" after a successful virConfReadFile.
|
||||||
|
@ -2166,8 +2166,6 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
qemudRunLoop(server);
|
qemudRunLoop(server);
|
||||||
|
|
||||||
qemudCleanup(server);
|
|
||||||
|
|
||||||
close(sigwrite);
|
close(sigwrite);
|
||||||
|
|
||||||
if (godaemon)
|
if (godaemon)
|
||||||
@ -2181,6 +2179,7 @@ int main(int argc, char **argv) {
|
|||||||
unlink (pid_file);
|
unlink (pid_file);
|
||||||
|
|
||||||
error1:
|
error1:
|
||||||
|
qemudCleanup(server);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user