mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +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>
|
||||
|
||||
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.
|
||||
* qemud/qemud.c (remoteReadConfigFile): Be careful to free
|
||||
"conf" after a successful virConfReadFile.
|
||||
|
@ -2166,8 +2166,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
qemudRunLoop(server);
|
||||
|
||||
qemudCleanup(server);
|
||||
|
||||
close(sigwrite);
|
||||
|
||||
if (godaemon)
|
||||
@ -2181,6 +2179,7 @@ int main(int argc, char **argv) {
|
||||
unlink (pid_file);
|
||||
|
||||
error1:
|
||||
qemudCleanup(server);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user