mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
don't crash when called without arguments
This commit is contained in:
parent
1d6c713b18
commit
9f9ce6130d
@ -1,3 +1,8 @@
|
||||
Thu May 7 09:16:05 CEST 2009 Guido Günther <agx@sigxcpu.org>
|
||||
|
||||
* src/lxc_controller.c (main): don't crash when called without
|
||||
arguments
|
||||
|
||||
Wed May 6 16:55:02 GMT 2009 Mark McLoughlin <markmc@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: fix handling of <hostdev managed='yes'>
|
||||
|
@ -745,7 +745,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
cleanup:
|
||||
virFileDeletePid(LXC_STATE_DIR, def->name);
|
||||
if (def)
|
||||
virFileDeletePid(LXC_STATE_DIR, def->name);
|
||||
lxcControllerCleanupInterfaces(nveths, veths);
|
||||
unlink(sockpath);
|
||||
VIR_FREE(sockpath);
|
||||
|
Loading…
Reference in New Issue
Block a user