mirror of https://gitee.com/openkylin/libvirt.git
Avoid segfault upon early libvirtd failure.
* qemud/qemud.c (main): Don't call qemudCleanup on an uninitialized pointer.
This commit is contained in:
parent
6a17c6c652
commit
f9e94c2e13
|
@ -1,3 +1,9 @@
|
|||
Mon Mar 3 19:09:51 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Avoid segfault upon early libvirtd failure.
|
||||
* qemud/qemud.c (main): Don't call qemudCleanup on an
|
||||
uninitialized pointer.
|
||||
|
||||
Mon Mar 3 15:40:31 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* NEWS configure.in libvirt.spec.in docs/* include/libvirt/libvirt.h
|
||||
|
|
|
@ -2025,7 +2025,7 @@ libvirt management daemon:\n\
|
|||
|
||||
#define MAX_LISTEN 5
|
||||
int main(int argc, char **argv) {
|
||||
struct qemud_server *server;
|
||||
struct qemud_server *server = NULL;
|
||||
struct sigaction sig_action;
|
||||
int sigpipe[2];
|
||||
const char *pid_file = NULL;
|
||||
|
@ -2180,6 +2180,7 @@ int main(int argc, char **argv) {
|
|||
unlink (pid_file);
|
||||
|
||||
error1:
|
||||
if (server)
|
||||
qemudCleanup(server);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue